Nagios Plugin check_snmp_load
Posted: Wed Dec 07, 2016 5:28 am
Hey everyone!
I have installed Nagios 4.2.1 and I wan't to monitor servers via snmp. (CPU, MEMORY, etc).
Here is my commands.cfg:
Nagios drops me "Put snmp login info". First of all, whats the problem in my syntax? How do I put OID in the commands cfg or in the config file?! For example 1.3.6.1.4.1.9.9.109.1.1.1.1.5.1 (5 minute load CISCO).
I have installed Nagios 4.2.1 and I wan't to monitor servers via snmp. (CPU, MEMORY, etc).
Here is my commands.cfg:
And the config file:define command{
command_name snmp_5minute_load
command_line $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ $USER7$ -T $ARG1$ -w $ARG2$ -c $ARG3$
}
define host{
use generic-switch ; Inherit default values from a template
host_name CISCO_TEST_3560 ; The name we're giving to this host
alias snmp test ; A longer name associated with the host
address x.x.x.x ; IP address of the host
}
define service {
host_name CISCO_TEST_3560
use generic-service
service_description CPU 5 Minute Average
check_command snmp_5minute_load!cisco!90,80,60!100,100,100!-C testproba1
}
Nagios drops me "Put snmp login info". First of all, whats the problem in my syntax? How do I put OID in the commands cfg or in the config file?! For example 1.3.6.1.4.1.9.9.109.1.1.1.1.5.1 (5 minute load CISCO).