Page 1 of 1
check_snmp_arp
Posted: Wed Jan 18, 2012 3:01 pm
by lamin
Hey guys,
I am trying to run check_snmp_arp to watch some swithes. However, i got some data in the command line and no data in nagios wweb interface. See attachment.
Re: check_snmp_arp
Posted: Wed Jan 18, 2012 3:42 pm
by scottwilkerson
can you tell us what you are getting in the web interface
Re: check_snmp_arp
Posted: Wed Jan 18, 2012 3:45 pm
by lamin
see attachment
Re: check_snmp_arp
Posted: Wed Jan 18, 2012 4:41 pm
by scottwilkerson
Lets edit your check command as follows:
Code: Select all
$USER1$/check_snmp_arp.pl -H $ARG1$ -C $ARG2$ -w $ARG3$ -c $ARG4$
Now in the service management for this service set:
$ARG1$=10.0.0.28
$ARG2$=public
$ARG3$=600
$ARG4$=800
Additionally, this plugin (not created by Nagios staff) didn't have any check to see if it was unable to connect and even if it couldn't connect to the server it would report:
Code: Select all
Status is OK. Arp enries in memory: 0 |arp=0
I modified the original and have attached it if you would like to try it.
Re: check_snmp_arp
Posted: Wed Jan 18, 2012 5:08 pm
by lamin
i followed your recommendation however, i still got some errors. se attachment
Re: check_snmp_arp
Posted: Wed Jan 18, 2012 5:27 pm
by scottwilkerson
lets go back to the original file (attached) but leave the other settings like they are
Re: check_snmp_arp
Posted: Thu Jan 19, 2012 10:24 am
by lamin
I got it working but i hard-code the variables (hostaddress, public string etc...) in the command definition because i kept getting some error. I guess that the code was not very well tested by the owner.
Thanks
Re: check_snmp_arp
Posted: Thu Jan 19, 2012 10:51 am
by scottwilkerson
lamin wrote:I got it working but i hard-code the variables (hostaddress, public string etc...) in the command definition because i kept getting some error. I guess that the code was not very well tested by the owner.
Thanks
I think you are right. I'm glad hear you got it working.