Christoph Kluenter a écrit : > On Wednesday 08 October 2008 17:52:58 Francis Dube wrote: > >> Hi, >> >> I'm using Nagios nagios-2.12_1 with NRPE nrpe2-2.11_1 to check if my >> display is working properly. I'm taking a screenshot every 4 minutes and >> then i compare it with the last screenshot. My script is working very >> well when it's ran locally but when i'm calling it from the server the >> screenshot isn't taken. I tought it was a right problem on the Xorg >> server, but i tried with "xhost +" (which do "access control disabled, >> clients can connect from any host"). Both ways i run the script with the >> user 'nagios'. The rest of the commands in the scripts work fine, the >> only problem is with the screenshot which is taken using this command : >> import -display :0 -window root /afolder/myscreenshot.png >> > Have you tried setting the PATH ? > Or using /usr/bin/import instead of plain "import" ? > > Cheers, > Christoph > >> I also tried to run the script over shh (ssh [EMAIL PROTECTED] >> /usr/local/libexec/nagios/check_news) and this method is working as fine >> as locally. So i think there's something wrong with the way NRPE execute >> my script. >> >> Anyone got an idea of the reason why the screenshot isn't working when i >> run the script with NRPE ? >> >> Thanks ! >> >> Francis >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge Build the coolest Linux based applications with Moblin SDK & win >> great prizes Grand prize is a trip for two to an Open Source event anywhere >> in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> 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 >> I gave it a try, it worked !! It's kinda pathetic because in the whole script every single commands are called usgin the full path except this one. The reason why I never tought it would be a problem is because when i ran the command over ssh i never got a "command not found" error or anything like that.
Anyway, thanks a lot my friend ! :) Francis Dube R&D Optik Securite www.optiksecurite.com ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ 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
