Page 1 of 2
Check_snmp missing?
Posted: Fri Feb 28, 2014 11:44 am
by 5mall5nail5
I notice in services I get:
(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_snmp, ...) failed. errno is 2: No such file or directory
I go to /usr/local/nagios/libexec and sure enough there is no check_snmp. I did install nagios-plugins 1.5, or so I thought... but, where is check_snmp? Running Ubuntu 13.10 guys and Nagios 4.0.2 -- any suggestions?
Thanks,
Jon
Re: Check_snmp missing?
Posted: Fri Feb 28, 2014 12:29 pm
by sreinhardt
What snmp packages do you have presently? If you installed from source and do not have the net-snmp packages it will not build check_snmp.
Re: Check_snmp missing?
Posted: Fri Feb 28, 2014 1:37 pm
by 5mall5nail5
Thanks - how about in Ubuntu? I did just install snmpd. So, I guess I need to reinstall Nagios? Do I need to remove anything or can I just perform the configure/etc that I did?
Re: Check_snmp missing?
Posted: Fri Feb 28, 2014 1:42 pm
by sreinhardt
Actually you do not need to uninstall\remove anything. That rpm command should work for ubuntu as well, since apt-get still uses .rpm or .deb... although thinking about it you might need to check with dpkg instead, which I am not familiar with. The basic idea is that once you install the ubuntu version of perl net-snmp, utils and devel of them, you just need to reconfigure and compile the plugins.
Re: Check_snmp missing?
Posted: Fri Feb 28, 2014 2:03 pm
by 5mall5nail5
sreinhardt wrote:Actually you do not need to uninstall\remove anything. That rpm command should work for ubuntu as well, since apt-get still uses .rpm or .deb... although thinking about it you might need to check with dpkg instead, which I am not familiar with. The basic idea is that once you install the ubuntu version of perl net-snmp, utils and devel of them, you just need to reconfigure and compile the plugins.
Thanks! rpm doesn't work and dpkg was a big confusing so I figured I can ./configure && make && make install without doing any worse damage. So, we'll see.
Re: Check_snmp missing?
Posted: Fri Feb 28, 2014 2:43 pm
by 5mall5nail5
Ok I reconfig'd with snmpd and all, and now I see check_snmp in the libexec location.
However, now I get this:
CRITICAL - Plugin timed out while executing system call
For "uptime" via check_snmp - any thoughts on that?
Re: Check_snmp missing?
Posted: Fri Feb 28, 2014 3:00 pm
by slansing
Do you have snmp properly configured on the remote system's end? Is port 161 open? Is the snmp daemon running?
Re: Check_snmp missing?
Posted: Fri Feb 28, 2014 3:02 pm
by 5mall5nail5
Do you have documentation on proper snmp configuration? I've followed a slew of guides but it's highly likely that something is not configured properly
Re: Check_snmp missing?
Posted: Fri Feb 28, 2014 4:13 pm
by slansing
We do not have documentation on enabling SNMP on remote devices/systems as it is different for each device, in this case, it should be as simple as googling, how to set up SNMP with linux, or, how to enable snmp on linux.
Re: Check_snmp missing?
Posted: Fri Feb 28, 2014 6:42 pm
by 5mall5nail5
Thanks! I understand.
In this case I am trying to utilize SNMP from my Asus AC66U router.