Page 1 of 1
Snmp plugin issue
Posted: Fri Jul 21, 2017 4:03 am
by gtsoukatou
Hello,
i have installed Nagios Core along with its plugins. I have also installed snmp utils. The problem is that the check_snmp plugin does not appear anywhere. When i also run snmpwalk command, i get the error -bash: ./check_snmp: No such file or directory. Any idea?? What else should i install?
Re: Snmp plugin issue
Posted: Fri Jul 21, 2017 8:33 am
by mcapra
check_snmp is included as part of the nagios-plugins package. It's a totally separate thing from Nagios Core.
If you're following
the official documentation for installing Nagios Core, there should be a "Installing The Nagios Plugins" step which should include the
check_snmp plugin.
Re: Snmp plugin issue
Posted: Fri Jul 21, 2017 1:12 pm
by tgriep
check_snmp: Requires the NET-SNMP package.
What OS and release are you trying to install the plugins on?
Re: Snmp plugin issue
Posted: Tue Jul 25, 2017 3:09 am
by gtsoukatou
Hi,
the OS is Centos 6.7. I have followed the steps for installing net-snmp lib. I have also attached the following file. Any other idea?
Re: Snmp plugin issue
Posted: Tue Jul 25, 2017 12:21 pm
by tgriep
Make sure the following packages net-snmp packages are installed on the server.
Code: Select all
net-snmp net-snmp-devel net-snmp-libs net-snmp-perl net-snmp-utils
If they are not, run the following to install them.
Code: Select all
yum install net-snmp net-snmp-devel net-snmp-libs net-snmp-perl net-snmp-utils -y
Then recompile the plugins to see if the check_snmp plugin is built.
Make sure you run a
first then re-run the configure script before recompiling.
If it still doesn't compile, in the folder where you compiled the plugins, there should be a config.log file.
Can you post it here?
Re: Snmp plugin issue
Posted: Wed Jul 26, 2017 3:11 am
by gtsoukatou
Hi,
I finally installed it. I want to ask about mrtg, though. I have installed mrtg, but i get the error:
check_mrtgtraf: Unable to open MRTG log file
Which and where is this log file?
Moreover, which is the process for configuring mrtg to monitor a device?
Re: Snmp plugin issue
Posted: Wed Jul 26, 2017 10:10 am
by tgriep
Take a look at the MRTG installation guide for the information you are looking for at the link below.
http://oss.oetiker.ch/mrtg/doc/mrtg-unix-guide.en.html