snmpwalk as external command or customize "Status information"
Marc Powell
marc at ena.com
Fri Jun 6 21:32:10 CEST 2008
Please always respond on list so that others, now and in the future,
learn from you experience.
On Jun 6, 2008, at 1:30 PM, Sergio Belkin wrote:
>>>
>>> define command{
>>> command_name snmpwalk
>>> command_line $USER5$/snmppwalk -v2c -c "mi community"
>>> $HOSTADDRESS$ -Oqv $ARGS1$
>>> }
>> 1) You can't use arbitrary system commands as nagios plugins. Nagios
>> expects plugins to output results in a particular way and quit with
>> specific exit codes corresponding to status. See the Developer
>> Guidelines at http://nagiosplug.sf.net if you're interested in
>> learning more.
>> 2) Return code of 127 is a system level exit code. It means that the
>> file/program doesn't exist. Regardless of whether snmppwalk would
>> work
>> as a nagios plugin, the program isn't where you've said it is (<value
>> of $USER5$>/snmppwalk). You probably meant $USER5$/snmpwalk.
>
> Thanks again, Yes I had a typo, however, stil it won't work :(
It's not meant to because of (1).
--
Marc
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list