Snmp plugin issue

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
gtsoukatou
Posts: 9
Joined: Wed May 03, 2017 5:28 am

Snmp plugin issue

Post 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?
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Snmp plugin issue

Post 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.
Former Nagios employee
https://www.mcapra.com/
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Snmp plugin issue

Post by tgriep »

check_snmp: Requires the NET-SNMP package.
What OS and release are you trying to install the plugins on?
Be sure to check out our Knowledgebase for helpful articles and solutions!
gtsoukatou
Posts: 9
Joined: Wed May 03, 2017 5:28 am

Re: Snmp plugin issue

Post 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?
Attachments
Untitled.png
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Snmp plugin issue

Post 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

Code: Select all

make clean
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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
gtsoukatou
Posts: 9
Joined: Wed May 03, 2017 5:28 am

Re: Snmp plugin issue

Post 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?
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Snmp plugin issue

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked