Page 1 of 1

OSM working fine, then breaks says no PCAP?

Posted: 30 Aug 2021, 17:43
by Serra
I've been using OSM for over a year and today I went in and it wasn't running saying it needs PCAP? I'm not sure what has happened, obviously, its been running for a while, so PCAP must have been installed. As I remember OSM isn't a self install, so I don't have the install documents.

Re: OSM working fine, then breaks says no PCAP?

Posted: 30 Aug 2021, 17:55
by Sarah
If you want to reinstall it, install instructions are in /etc/osm/install.txt. You could also try running this command:

Code: Select all

sh /etc/osm/osmpcap.sh
Then check the osmd log to ensure it installed correctly.

If you need us to take a look, please log a ticket on the helpdesk.
https://support.configserver.com/

Re: OSM working fine, then breaks says no PCAP?

Posted: 09 Sep 2021, 16:22
by Serra
Sep 9 11:21:33 mag osmd[82629] [osmd]: daemon started
Sep 9 11:21:33 mag osmd[82629] [osmd]: Main Process: Can't locate Net/Pcap.pm in @INC (you may need to install the Net::Pcap module) (@INC contains: /etc/osm/Modules /usr/local/cpanel /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/x86_64-linux-64int /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib /usr/local/cpanel/3rdparty/perl/532/lib/perl5/532/x86_64-linux-64int /usr/local/cpanel/3rdparty/perl/532/lib/perl5/532 /opt/cpanel/perl5/532/site_lib/x86_64-linux-64int /opt/cpanel/perl5/532/site_lib) at /etc/osm/osmd.pl line 229.

Sep 9 11:21:33 mag osmd[82633] [logfile]: logfile/cwdcheck process started
Sep 9 11:21:33 mag osmd[82629] [osmd]: daemon stopped
Sep 9 11:21:54 mag osmd[82934] [osmd]: daemon started
Sep 9 11:21:54 mag osmd[82934] [osmd]: Main Process: Can't locate Net/Pcap.pm in @INC (you may need to install the Net::Pcap module) (@INC contains: /etc/osm/Modules /usr/local/cpanel /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/x86_64-linux-64int /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib /usr/local/cpanel/3rdparty/perl/532/lib/perl5/532/x86_64-linux-64int /usr/local/cpanel/3rdparty/perl/532/lib/perl5/532 /opt/cpanel/perl5/532/site_lib/x86_64-linux-64int /opt/cpanel/perl5/532/site_lib) at /etc/osm/osmd.pl line 229.

Sep 9 11:21:54 mag osmd[82938] [logfile]: logfile/cwdcheck process started
Sep 9 11:21:54 mag osmd[82934] [osmd]: daemon stopped

Re: OSM working fine, then breaks says no PCAP?

Posted: 09 Sep 2021, 16:25
by Serra
I did the script one line at a time and got this:

You appear to lack the pcap(3) library.

Re: OSM working fine, then breaks says no PCAP?

Posted: 09 Sep 2021, 16:29
by Sarah
You need to make sure you have installed all the rpms correctly as per the installation document. Try reinstalling by following the instructions are here:
https://www.configserver.com/cp/osminstaller.html

Pay close attention to any errors that come up.

If you have done that, there are no errors and it still does not work, we can't really help any further without taking a look at the server.