You could also try prepending an echo to the command_line in the command and you will see the exact command line it is executing in the cgi interface, then copy and paste that into a terminal. work the bugs out from there.
-Robert Andy Shellam wrote: > Another thing to try is adding "> /tmp/nrpe-test.txt 2>&1" to the end of > your command in your NRPE config file. > Then when Nagios has tried to run the plugin, /tmp/nrpe-test.txt on the > NRPE side will contain any output/errors etc. That's actually how I > found out about the TTY problem with sudo ;) > > Andy. > > Henrik Morsing wrote: > >> On Sun, Apr 08, 2007 at 03:31:10PM +0100, Andy Shellam wrote: >> >> >>> Hi Henrik >>> >>> Is this the same when you run check_nrpe yourself manually? >>> I.e. from the console as the Nagios user, run check_nrpe -H linux -c >>> check_home - do you get "No output ..."? >>> >>> >> Hi and thanks for replying. NRPE works fine, no problems there, as any user >> infact. I donøt use sudo either. >> >> >> >>> In NRPE's config file, are you using sudo as the command_prefix? >>> I had a lot of problems that took a while to figure out - sudo was >>> requiring a console which nrpe doesn't have. Removing the "defaults >>> requiretty" from my /etc/sudoers file did the trick. >>> >>> >> Thanks for the tip though :) >> >> Regards >> Henrik >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share your >> opinions on IT & business topics through brief surveys-and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> 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 >> >> !DSPAM:37,4618feee89291156512267! >> >> >> >> > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > 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 > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ 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
