Page 1 of 1
Check_snmp_int.pl to check linux interfaces
Posted: Wed Dec 21, 2011 9:50 pm
by hermy7
I have some problem using check_snmp_int.pl to check linux interfaces eth0.
when i have configure the service, then apply the configuration it was come Configuration verification failed..
Code: Select all
$USER1$/check_snmp_int.pl -H $HOSTADDRESS$ -C $ARG1$ -2 -n $ARG2$ -f -k -w $ARG3$ -c $ARG4$ $ARG5$
config error snapshoot
Processing object config file '/usr/local/nagios/etc/services/192.xxx.xxx.xx.cfg'...
Processing object config file '/usr/local/nagios/etc/services/localhost.cfg'...
Error: Invalid max_attempts, check_interval, retry_interval, or notification_interval value for service 'eth0' on host '192.xxx.xxx.xx'
Error: Could not register service (config file '/usr/local/nagios/etc/services/check interfaces.cfg', starting on line 14)
Error processing object config files!
Re: Check_snmp_int.pl to check linux interfaces
Posted: Thu Dec 22, 2011 11:49 am
by scottwilkerson
The Invalid max_attempts, check_interval, retry_interval, or notification_interval value's are found on the "Check Settings" & "Alert Settings" tabs of the configuration.
Check these values and apply configuration again. The required items on these tabs are marked with a *
Re: Check_snmp_int.pl to check linux interfaces
Posted: Fri Dec 23, 2011 12:57 am
by hermy7
ah I get it, thanks.
now i can apply the configuration, but the nagios status show unknown
and the status information show:
ERROR: Description table : No response from remote host '192.xxx.xxx.xxx'.
why still cannot detect the eth0 interfaces?
Re: Check_snmp_int.pl to check linux interfaces
Posted: Wed Dec 28, 2011 11:04 am
by scottwilkerson
Do you have snmpd server running on 192.168.243.106?
if you run this what happens (replace
public with your SNMP community string)?
Code: Select all
snmpwalk -v 1 192.168.243.106 -c public
Finally, in your service setup, did you put the correct community string in the $ARG1$ field?
Re: Check_snmp_int.pl to check linux interfaces
Posted: Thu Dec 29, 2011 10:30 pm
by hermy7
i got some progress for the check_snmp_int but the value it still show eth0:UP No usable data on file (1 rows) :(1 UP): UNKNOWN status unknown...
I have check the linux snmp /etc/init.d/snmpd status.. it show running.
and I also can snmpwalk by using public community string....
what is the status information should display if running Check_snmp_int..
Re: Check_snmp_int.pl to check linux interfaces
Posted: Mon Jan 02, 2012 1:29 pm
by scottwilkerson
Just some verification. What command are you using?
Something like:
Code: Select all
./check_snmp_int.pl -H 192.168.243.106 -C public -n eth0 -w 200,400 -c 0,600
I noticed in your check command from your first post there is a $ARG5$ what does this represent?
Additionally, I think you should remove the -k flag from the check command from the first post
Re: Check_snmp_int.pl to check linux interfaces
Posted: Tue Jan 03, 2012 12:26 am
by hermy7
thanks scottwilkerson....
it take a while to display the in and out traffic for check_snmp_int work..
and I have also edit the monitoring setting to every 2 minute to monitoring in configure tabs..
Monitor the service every ____ minutes.
thanks.
