On Jun 10, 2009, at 12:57 PM, Joe Hammerman wrote: > Good morning Nagios users list. I am hoping that someone here would > be kind enough to take a look at this problem I’m having. I’m > stumped so any troubleshooting steps would be greatly appreciated! > > A short summary of the problem is this: a script called by the > nagios user on the target machine runs without error. However, when > the script is called by the remote check_nrpe script it fails, with > apparently no output. > > The check_nrpe script is configured to call a command that calls an > HP script, which then parses the output. Here is the command > directive: > > command[hplog_fan.pl]=/usr/local/nagios/libexec/videoegg/hplog_fan.pl > > Here is the contents of the script: > > #!/usr/bin/perl > @output = `sudo /sbin/hplog -f`;
If 'requiretty' is enabled in sudoers (visudo), you'll need to disable it. -- Marc ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Nagios-users mailing list [email protected] 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
