$HOSTDURATION usability
Kyle Tucker
kylet at panix.com
Fri May 26 17:39:57 CEST 2006
Hi,
I modified my host-notify-by-email command
to include a line to indicate how long a host had
been down. When I saw it come out in this HOST UP
recovery notification as zero seconds, some quick
further reading shed light on why. I know this will
be useful for re-notification of hosts that are still
down, but I'd like a total on the recovery HOST up
mail as well. Any way to obtain this without keeping
some home-grown state table or similar mechanism? It
looks like the info might be in the status.dat, but
I don't know if I should be constantly accessing this
file.
Notification Type: RECOVERY
Host: host.foo.bar
State: UP
Host Description: The Downed Host
Address: 12.34.56.78
Info: host up - sshd and snmpd responding
Date/Time: Fri May 26 11:11:47 EDT 2006
Downtime duration: 0d 0h 0m 0s
--
- Kyle
---------------------------------------------
kylet at panix.com http://www.panix.com/~kylet
---------------------------------------------
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
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