NRPE problems.. blank arugments

Lyle Scott III portcitycs at gmail.com
Fri Jun 13 01:18:24 CEST 2008


Hey there.. i am having a problem with my NRPE plugins when using argument
maros.  Am i making a syntax error or what?  I have looked at it too long
today to tell :)

I have confirmed the package was configured with command args enabled and I
did turn on dont_blam_nrpe.

As stated later, the plugin and nrpe work great if i take out the argument
macro and do a static command and supply the plugin with static arguments
via nrpe_local.cfg.

I have copied snippets of relevant files:


############  SERVER  ##############
(host config)
check_command           check_nrpe!check_smartmon!/dev/hda

############ CLIENT ################

(/etc/nagios/nrpe.cfg
dont_blame_nrpe=1  (also have arguments compiled in)

(/etc/nagios/nrpe_local.cfg)
command[check_smartmon]=/usr/bin/sudo /usr/lib/nagios/plugins/check_smartmon
-d $ARG1$
###the following works if i edit $ARG1$ argument out the host config
###command[check_smartmon]=/usr/bin/sudo
/usr/lib/nagios/plugins/check_smartmon -d /dev/hda

(/var/log/syslog)
Jun 12 18:44:21 backup nrpe[12489]: Host is asking for command
'check_smartmon' to be run...
Jun 12 18:44:21 backup nrpe[12489]: Running command: /usr/bin/sudo
/usr/lib/nagios/plugins/check_smartmon -d
Jun 12 18:44:22 backup nrpe[12489]: Command completed with return code 2 and
output:
Jun 12 18:44:22 backup nrpe[12489]: Return Code: 2, Output: NRPE: Unable to
read output
Jun 12 18:44:22 backup nrpe[12489]: Connection from 192.168.222.118 closed.

thanks much!

-- 
Lyle Scott, III
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080612/857111ea/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
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