Just when i thought i had a workaround (revisit: mulitple oid returns)
jgking at packetstorm.org
jgking at packetstorm.org
Mon Jan 27 17:46:19 CET 2003
>From the command line the following works:
check_snmp -H localhost -o
.1.3.6.1.4.1.2021.10.1.100.1,.1.3.6.1.4.1.2021.10.1.100.2,.1.3.6.1.4.1.2021.10.1.100.3
-c 0,0,0 -C **** -d "="
Which yields: SNMP OK - 0 0 0
So i add the following to checkcommands:
define command{
command_name check_snmp_multi
command_line $USER1$/check_snmp -H $ARG1$ -o $ARG2$ -c $ARG3$
-C $ARG4$ -d $ARG5$
}
Then add the following to the services:
define service{
use generic-service ; Name of
service template to use
host_name localhost
service_description System Load
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command
check_snmp!localhost!.1.3.6.1.4.1.2021.10.1.100.1,.1.3.6.1.4.1.2021.10.1.100.2,.1.3.6.1.4.1.2021.10.1.100.3!0,0,0!*****!"="
}
And i get SNMP CRITICAL - *0* 0 0 instead.
Ive tried enclosing the values in quotes and still get the same thing.
Anyone know what im doing wrong here?
Thanks!,
Greg
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
More information about the Users
mailing list