[Nagiosplug-help] check_snmp output

Qiang, Li lqiang at verisign.com
Mon Jul 22 11:13:06 CEST 2002


Hi,
 
I am trying to use check_snmp to get the system uptime and displayed in
Nagios.
 
Here's my command line output: 
check_snmp -H 10.25.100.28 -o sysUpTime.0 -C public
SNMP WARNING - Timeticks: (25639539) 2 days, 23:13:15.39 
 
Here's my checkcommands.cfg
# 'check_snmp_uptime' command definition
define command{
        command_name    check_snmp_uptime
        command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -o sysUpTime.0
-w $ARG1$ -C public        }
 
Here's my services.cfg
# Generic service definition template
define service{
@
/snmp
        service_description             System UpTime
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           1
        retry_check_interval            1
        contact_groups                  snmp-admins
        notification_interval           120
        notification_period             24x7
        notification_options            w,u,c,r
        check_command                   check_snmp_uptime!20:10
        }
 
What I got from Nagios is
SNMP WARNING 25639539
 
Questions
1. How do I display "2 days, 23:13:15.39", not the Timeticks: "25639539" ?
2. According to check_snmp help page, if I use warning integer_rangers
(max:min), I should get ok state. I also try !10:20, it gives me the same
result.
 
Thanks a lot,
 
Li
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20020722/0b2e1a75/attachment.html>


More information about the Help mailing list