Bug in Nagios WRT argument interpolation?

Michael Loftis mloftis at wgops.com
Thu Jul 31 04:40:11 CEST 2003


Finally figured it out...Maybe I should let all my nagios bugs sit for a 
few days before asking about them LOL :)

snmpget had some sort of issue locating MIBs.  Moved them around and it's 
fine now.



--On Wednesday, July 30, 2003 7:29 PM -0600 Michael Loftis 
<mloftis at wgops.com> wrote:

> Nagios 1.1
> Plugins 1.3.1
>
> Both of these work fine when run from the command line, but inside of
> Nagios the swap check fails!!!  The snmp_load check however works like a
> champ inside of nagios, whats the deal?  I completely removed and
> redefined the swap stuff but still nothing.  If I run check_snmp from the
> command line, substituing variables properly, it works great.  Any way I
> can get Nagios 1.1 to *log* the *precise* exec()?  I have a huge
> suspicion of a bug inside of Nagios since both work from the command
> line, only one works when nagios execs it...
>
> The only thing I can think of is that the argument interpolation isn't
> working out right.  Apologies if mulberry or your client line wraps any
> of the below stuff, rest assured that I quadruple checked for that inside
> of the checkcommand.cfg file.
>
> TIA folks...
>
>
> Ex of event log w/ check_snmp output...
> [2003-07-30 19:18:15] SERVICE ALERT: bighorn;Swap;CRITICAL;SOFT;1;swap
> CRITICAL - *1* -1
>
> configs snippets:
>
> define service{
>         use                             generic-service-24x7
>         hostgroup_name                  mwswap-64m-c
>         service_description             Swap
>         check_command                   snmp_swap!GRUB!102400!65536
>         }
>
> define service{
>         use                             generic-service-24x7
>         hostgroup_name                  mwload-11-checks
>         service_description             Load
>         check_command snmp_load!RANGER!800!500!500!11000!900!900
>         }
>
> define command{
>         command_name    snmp_swap
>         command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o
> .1.3.6.1.4.1.2021.4.4.0,.1.3.6.1.4.1.2021.4.3.0 -w $ARG2$: -c $ARG3$: -l
> swap         }
>
> define command{
>         command_name    snmp_load
>         command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o
> .1.3.6.1.4.1.2021.10.1.5.1,.1.3.6.1.4.1.2021.10.1.5.2,.1.3.6.1.4.1.2021.1
> 0. 1.5.3 -w :$ARG2$,:$ARG3$,:$ARG4$ -c :$ARG5$,:$ARG6$,:$ARG7$ -l load
> }
>
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/
> 01 _______________________________________________
> 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






-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
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