Remote restart by ssh

Anthony anthony-nagios at hogan.id.au
Wed Sep 9 10:56:58 CEST 2009


Does the script rely on particular environment variables being set?

Ie. Require a login shell?

If you run "ssh ..... user at hostname .... command_to_run" from the nagios box
does it work? If not, it might be that the login environment gets different
variables set than when the login environment is bypassed to execute your
specified command.

-- 
Regards,

Anthony Hogan
System Administrator
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090909/6ca4b121/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
-------------- 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