[Nagios]SNMP checks
Michael Markstaller
mm at elabnet.de
Wed Nov 20 11:27:11 CET 2002
Hi,
I'll paste you some of my config below, this should explain most of it.
Basically I'm using check_snmp plugin which requires nothing special
besides the ucd-snmp-package from redhat AFAIK, with some predefined
commands in checkcommands.cfg.
Some other perl-plugins use Net::SNMP (installed via CPAN) which
requires the following RPM's from RH to get compiled (which took me some
time to find out, so I'll list them):
ucd-snmp-4.2.5-7.71.0,ucd-snmp-devel-4.2.5-7.71.0,ucd-snmp-utils-4.2.5-7
.71.0
#### checkcommands.cfg
# 'check_snmp' generic command definition
define command{
command_name check_snmp
command_line $USER1$/check_snmp -t 10 -H $HOSTADDRESS$ -C
$ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$ $ARG9$
}
# check_cisco_cpu: checks router CPU-usage
# Syntax
!Hostname!Community!WARN-1min-%!WARN-5min-%!CRIT-1min-%!CRIT-5min-%
define command{
command_name check_cisco_cpu
command_line $USER1$/check_snmp -t 10 -H $HOSTADDRESS$ -o
.1.3.6.1.4.1.9.2.1.57.0,.1.3.6.1.4.1.9.2.1.58.0 -C $ARG1$ -w
:$ARG2$,:$ARG3$ -c :$ARG4$,:$ARG5$ -l 'CPU usage 1min/5min' -D ' / '
}
#### services.cfg
define service{
use rz-service-info
host_name dell1,dell2
service_description DellAgent
normal_check_interval 30
stalking_options w,u,c
notification_period none
check_command check_snmp!<community-string>!-o
.1.3.6.1.4.1.674.10892.1.200.10.1.2.1!-w 3:3!-c 1:3!-l 'DellAgentStatus'
}
define service{
use rz-service-info
host_name router1,router2
service_description CPU
check_command
check_cisco_cpu!<community-string>!90!75!95!90
}
###
Hope this helps
Michael
-----Original Message-----
From: Pascal Miquet [mailto:p.miquet at hafiba.fr]
Sent: Wednesday, November 20, 2002 7:27 AM
To: Michael Markstaller
Subject: [Nagios]SNMP checks
Hello,
Sorry but I've no good answer for you, just some questions:
How did you manage snmp checks ? I mean what is needed to be
installed/configured.
I've got a RedHad 7.3
Actually the tests are made on my laptop, OB 6000 from HP.
Regards
Pascal Miquet
-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing
your web site with SSL, click here to get a FREE TRIAL of a Thawte
Server Certificate: http://www.gothawte.com/rd524.html
More information about the Users
mailing list