Fwd: reboot
Marc Powell
marc at ena.com
Fri Oct 14 23:02:16 CEST 2005
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of jun at lifecapturemedia.com
> Sent: Friday, October 14, 2005 3:47 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Fwd: reboot
>
>
>
>
>
>
> Anybody can let me know how can I or any plugin/addon reboot the
system
> when we
> find the remote host is down.
If the host is down, how will you reboot it remotely? That's the biggest
question you need to answer before you can proceed. Second is what OS is
running on the remote machine?
If you had it attached to some kind of remote power device you might be
able to script an event handler to perform whatever action is required
to get it to reset the power to the device but we can't tell you how to
do that because we don't know what you'd be using or how it works.
If you can still access the remote system, it's unix-like, ssh is still
available _and_ it's responsive to commands, you could create an event
handler script that ssh's in and issues the 'shutdown -r now' command as
a first attempt to reboot the machine. If all that's true however, why
would nagios be seeing it as down?
You could probably also use an event handler to trigger snmpd running on
the remote machine to restart the box as well but again, if that's
working, why is nagios showing it as down? I'd also be _very_ cautious
of allowing remote restarts via SNMP if this wasn't on a private, secure
network (and even then it's questionable...)
--
Marc
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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