Hello
So my last install was on Centos 6.7 as per recommendation of senior Nagios' support member i installed it on Centos 7 with installation instruction to the new version 4.1.1, I have multiple plugin issues currently, text errors on web interface:
(I am doing a check on 1 Router for testing purposes)
for port 1 and uptime :
(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_snmp, ...) failed. errno is 2: No such file or directory
For port 1 bandwidth monitoring:
check_mrtgtraf: Unable to open MRTG log file
Please help out on this...
PS: The /usr/local/nagios/libexec does not contain check_snmp from the default plugin install as per installation instructions ?
Plugin issue after re-install
Re: Plugin issue after re-install
OK I was able to install check_snmp by yum install nagios-plugins-snmp
need to copy the file from default install directory of /usr/lib64/nagios/plugins to /usr/local/nagios/libexec/
May be a wiki can be created for this, about known dependencies for different executable of plugins
as I read net-snmp and net-snmp-devel is needed for this
Furthermore, the problem for mrtg still exist any idea on that?
Cheers
need to copy the file from default install directory of /usr/lib64/nagios/plugins to /usr/local/nagios/libexec/
May be a wiki can be created for this, about known dependencies for different executable of plugins
as I read net-snmp and net-snmp-devel is needed for this
Furthermore, the problem for mrtg still exist any idea on that?
Cheers
Re: Plugin issue after re-install
For that check to work, you will have to install and configure MRTG on your server to collect the bandwidth data for your check_mrtgtraf. Take a look at this link for the instructions on how to do that.
http://oss.oetiker.ch/mrtg/
http://oss.oetiker.ch/mrtg/
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Plugin issue after re-install
tgriep,
DONE!
Its working thanks for that
Want to know what trigers the critical warning in the default switch.cfg for MRTG logs as my port shows this error :
Traffic CRITICAL - Avg. In = 1.9 MB/s, Avg. Out = 18.3 MB/s
not been able to figure this out, can you guide me to a userguide for this plugin as I wasn't able t find the same
DONE!
Its working thanks for that
Want to know what trigers the critical warning in the default switch.cfg for MRTG logs as my port shows this error :
Traffic CRITICAL - Avg. In = 1.9 MB/s, Avg. Out = 18.3 MB/s
not been able to figure this out, can you guide me to a userguide for this plugin as I wasn't able t find the same
Re: Plugin issue after re-install
Can you post the service definition and command definition for us to look at?
Former Nagios Employee
Re: Plugin issue after re-install
rkennedy,
this is the service definition
this is the service definition
Code: Select all
define service{
use generic-service ; Inherit values from a template
host_name Airtel-TNG
service_description Port 1 Bandwidth Usage
check_command check_local_mrtgtraf!/var/www/mrtg/103.54.220.50_sfp-sfpplus1.log!AVG!1000000,1000000!5000000,5000000!10
}
Re: Plugin issue after re-install
I have included the usage for the check_mrtgtraf plugin which describes the threshold settings but it looks like you have set the warning threshold at 1000000 bytes and the critical to 5000000 bytes,
but the Average In and out is higher than the thresholds so the thresholds need to be increased to a higher threshold level.
That should solve the critical / warnings for you.
but the Average In and out is higher than the thresholds so the thresholds need to be increased to a higher threshold level.
That should solve the critical / warnings for you.
Code: Select all
check_mrtgtraf --help
check_mrtgtraf v2.0.3 (nagios-plugins 2.0.3)
Copyright (c) 1999 Ethan Galstad <[email protected]>
Copyright (c) 1999-2014 Nagios Plugin Development Team
<[email protected]>
This plugin will check the incoming/outgoing transfer rates of a router,
switch, etc recorded in an MRTG log. If the newest log entry is older
than <expire_minutes>, a WARNING status is returned. If either the
incoming or outgoing rates exceed the <icl> or <ocl> thresholds (in
Bytes/sec), a CRITICAL status results. If either of the rates exceed
the <iwl> or <owl> thresholds (in Bytes/sec), a WARNING status results.
Usage check_mrtgtraf -F <log_file> -a <AVG | MAX> -w <warning_pair>
-c <critical_pair> [-e expire_minutes]
Options:
-h, --help
Print detailed help screen
-V, --version
Print version information
--extra-opts=[section][@file]
Read options from an ini file. See
https://www.nagios-plugins.org/doc/extra-opts.html
for usage and examples.
-F, --filename=STRING
File to read log from
-e, --expires=INTEGER
Minutes after which log expires
-a, --aggregation=(AVG|MAX)
Test average or maximum
-w, --warning
Warning threshold pair <incoming>,<outgoing>
-c, --critical
Critical threshold pair <incoming>,<outgoing>Be sure to check out our Knowledgebase for helpful articles and solutions!