elapsed down time
Hugo van der Kooij
hvdkooij at vanderkooij.org
Sat Aug 16 00:47:13 CEST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Marc Powell wrote:
|
| On Aug 15, 2008, at 11:50 AM, Hugo van der Kooij wrote:
|
|> -----BEGIN PGP SIGNED MESSAGE-----
|> Hash: SHA1
|>
|> Marc Powell wrote:
|> | On Aug 15, 2008, at 10:30 AM, James wrote:
|> |
|> |> I want to include the elapsed time from the host down alert to the
|> |> "Notification Type: RECOVERY".
|> |
|> | Isn't it awesome then that there are several macros available that'll
|> | help you accomplish that?
|>
|> Would you care to elaborate?
|>
|> I recall a similar discussion here that did not result in a simple
|> solution. So I may have missed something here.
|
| Either of these seem feasible, depending on specificity --
|
| $LASTHOSTSTATECHANGE$ This is a timestamp in time_t format (seconds
| since the UNIX epoch) indicating the time the host last changed state.
| $LASTHOSTUP$ This is a timestamp in time_t format (seconds since the
| UNIX epoch) indicating the time at which the host was last detected as
| being in an UP state.
I recall that $LASTHOSTSTATECHANGE$ only worked to indicate the previous
working period on a down message but the up message showed a bogus
counter (being 0 or close to zero). So that variable is not that usefull.
I for one would not care about how long the UP period was but I do care
about the DOWN period. But I have not yet found a way to add it to the
report.
Hugo.
PS: I see no reason to take this off the list. Hence I used the
Reply-To: header.
- --
hvdkooij at vanderkooij.org http://hugo.vanderkooij.org/
PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc
A: Yes.
>Q: Are you sure?
>>A: Because it reverses the logical flow of conversation.
>>>Q: Why is top posting frowned upon?
Bored? Click on http://spamornot.org/ and rate those images.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
iD8DBQFIpgdvBvzDRVjxmYERAryyAJ9GxSDrCMCUUDH5j76SjqviaGnIwACgj7zi
Cns1UDxaZsb6jVMW9z+ippQ=
=Lja5
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
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
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