hi, i have in services.cfg:
define service {
       host_name                          GESTION_PORTAL
       service_description                RED_IN
       is_volatile                     0
       check_period                    24x7
       max_check_attempts              3
       normal_check_interval           5
       retry_check_interval            1
       contact_groups                  router-admins
       notification_interval           5
       notification_period             24x7
       notification_options            c,r
       check_command                   apan-sql!snmpget!10!20
}

when executing this command get:

++ /usr/local/nagios/libexec/check_snmp -H GESTION_PORTAL -C public -o .1.3.6.1.2.1.2.2.1.16.1
+ VALUE='SNMP OK - 359945961 | iso.3.6.1.2.1.2.2.1.16.1=359945961c;;;;  '
+ STATUS=0
++ echo SNMP OK - 359945961 '|' 'iso.3.6.1.2.1.2.2.1.16.1=359945961c;;;;'
++ awk '{print $NF}'
+ COUNTER='iso.3.6.1.2.1.2.2.1.16.1=359945961c;;;;'
+ '[' 0 -gt 0 ']'
+ TEMPL=:OUT
+ DATA='1137503475:iso.3.6.1.2.1.2.2.1.16.1=359945961c;;;;'
+ RETVAL=0
+ RETSTR='SNMP OK: OUT:iso.3.6.1.2.1.2.2.1.16.1=359945961c;;;;, '
+ ERR=0
+ '[' 0 = 0 ']'
++ echo :OUT
++ cut -b 1-1
+ '[' : = : ']'
++ echo :OUT
++ cut -b 2-
+ TEMPL=OUT
+ /usr/bin/rrdtool update /usr/local/nagios/rrd/GESTION_PORTAL-RED.rrd -t OUT '1137503475:iso.3.6.1.2.1.2.2.1.16.1=359945961c;;;;'
ERROR: not a simple integer: 'iso.3.6.1.2.1.2.2.1.16.1=359945961c;;;;'
+ echo SNMP OK: 'OUT:iso.3.6.1.2.1.2.2.1.16.1=359945961c;;;;,'
SNMP OK: OUT:iso.3.6.1.2.1.2.2.1.16.1=359945961c;;;;,
+ exit 0

Do you know why and how resolve?

thanks


--
Saludos
  _______________________________________


begin:vcard
fn:Jose Castilla Gallardo
n:Castilla Gallardo;Jose
email;internet:[EMAIL PROTECTED]
version:2.1
end:vcard

Reply via email to