[Nagiosplug-devel] check_iftable - Submission

Subhendu Ghosh sghosh at sghosh.org
Fri Nov 15 14:39:02 CET 2002


Of course a patch would be nice ;)



On Fri, 15 Nov 2002, Rob King wrote:

> Hey everyone,
>     Ah-ha! I did find a difference. Now I remember why I did it this 
> way. My script also checks the ifConnectorPresent attribute, and doesn't 
> send out an alert if a connector is not present. This prevents it from 
> sending out an error on "virtual" interfaces that are usually down, like 
> dial-out ports.
> 
>     Sorry, that's the difference. :)
> 
>     Thanks,
>     Rob
> 
> 
> Rob King wrote:
> 
> > Hey Subhendu,
> >    *grins* Now that I've looked at the check_ifstatus, I don't really 
> > see much of a difference. Sorry, when I grabbed the help message for 
> > check_ifstatus and I saw that it had a <PORT> option, I thought that 
> > it was used for checking specific ports.
> >
> >    So, that's my bad. Duplication of labor, all my fault.
> >
> >    Thanks for the pointer, though.
> >
> >    Rob
> >
> > Subhendu Ghosh wrote:
> >
> >> Post it to the list.
> >>
> >> How different is this from check_ifstatus ?
> >>
> >> FYI - there is no table command in snmpv2 - but an implementation of 
> >> getbulk recursion  for the snmptable cmdline app in the net-snmp 
> >> distribution.
> >>
> >> -sg
> >>
> >> On Fri, 15 Nov 2002, Rob King wrote:
> >>
> >>  
> >>
> >>> Hey everyone,
> >>>    I've written a Nagios plugin (in very ugly Bourne shell code) 
> >>> that uses the SNMPv2 TABLE command to poll all the interfaces on a 
> >>> router/machine, and give output like "Interfaces: 653 up, 32 down, 1 
> >>> admin down, 1 disconnected". It seems to work fine, as we're using 
> >>> it to monitor approx. 200 routers. The benefit to this is that it 
> >>> checks all the interfaces using one SNMP operation for everything, 
> >>> as opposed to one SNMP operation per interface.
> >>>
> >>>    Please let me know if this would be the appropriate location for 
> >>> me to submit it to have it included in the Nagios plugin 
> >>> distribution. Like I said, it's pretty ugly, but I'd love it if 
> >>> someone cleaned it up and included it.
> >>>
> >>>    Thanks,
> >>>    Rob
> >>>
> >>>   
> >>
> >>
> >>  
> >>
> >
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by: To learn the basics of securing 
> > your web site with SSL, click here to get a FREE TRIAL of a Thawte 
> > Server Certificate: http://www.gothawte.com/rd524.html
> > _______________________________________________
> > Nagiosplug-devel mailing list
> > Nagiosplug-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
> >
> >
> 
> 

-- 






More information about the Devel mailing list