-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi folks,
I'm running 4.3.10 at the moment on Linux and have a question about the DOWNTIME parameter in hosts.cfg.
- From the man page of hosts.cfg:
DOWNTIME=day:starttime:endtime[,day:starttime:endtime] DOWNTIME=columns:day:starttime:endtime:cause[,columns:day:starttime:endtime:cause] This tag can be used to ignore failed checks during specific times of the day - e.g. if you run services that are only monitored e.g. Mon-Fri 8am-5pm, or you always reboot a server every Monday between 5 and 6 pm.
What happens is that if a test fails during the specified time, it
is reported with status BLUE instead of yellow or red. Thus you can still see when the service was unavailable, but alarms will not be triggered and the downtime is not counted in the availability calculations generated by the Xymon reports.
Can someone confirm that this only works for red and yellow alerts but not for the purple ones? Can this behaviour be adjusted somewhere? Except for setting the status lifetime in the scripts of course.
Thanks Torsten
+---------------------------------------------------------+ | E-mail : bb4 [at] richter-it.net | | | | Homepage: http://www.richter-it.net/ | +---------------------------------------------------------+ Download my public key from: http://gpg-keyserver.de/pks/lookup?search=0x899093AC&op=get -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32)
iEYEARECAAYFAlGUitIACgkQ7DlmxomQk6x3KQCfdilkJjoNaiN65n+T3je5yNFy spcAoKxBFyFbfwi+5k2Ag8jwiaLVL7k7 =HKqb -----END PGP SIGNATURE-----
On 16.05.2013 09:29, Torsten Richter wrote:
I'm running 4.3.10 at the moment on Linux and have a question about the DOWNTIME parameter in hosts.cfg. [snip] Can someone confirm that this only works for red and yellow alerts but not for the purple ones? Can this behaviour be adjusted somewhere? Except for setting the status lifetime in the scripts of course.
You're right that it only affects red or yellow alerts.
It isn't something that you can configure, but I do see your point in having this also work for a purple status - typically local custom tests that are not running when the server is down.
You can change it in the code: In 4.3.10, this is in xymon-4.3.10/xymond/xymond.c on line 1194:
if ((*color == COL_RED) || (*color == COL_YELLOW)) {
should be changed to
if ((*color == COL_RED) || (*color == COL_YELLOW) || (*color == COL_PURPLE)) {
Run make + make install (or copy xymond/xymond over to the bin/ directory).
I'll make this change for 4.3.12. Note that you'll have to restart Xymon for this to take effect.
Regards. Henrik
Hi Henrik,
thanks for your quick answer. Well then I have to check when I can have a "planned downtime" for the XYmon server restart ;-)
Regards Torsten
henrik at hswn.dk hat am 16. Mai 2013 um 12:11 geschrieben:
On 16.05.2013 09:29, Torsten Richter wrote:
I'm running 4.3.10 at the moment on Linux and have a question about the DOWNTIME parameter in hosts.cfg. [snip] Can someone confirm that this only works for red and yellow alerts but not for the purple ones? Can this behaviour be adjusted somewhere? Except for setting the status lifetime in the scripts of course.
You're right that it only affects red or yellow alerts.
It isn't something that you can configure, but I do see your point in having this also work for a purple status - typically local custom tests that are not running when the server is down.
You can change it in the code: In 4.3.10, this is in xymon-4.3.10/xymond/xymond.c on line 1194:
if ((*color == COL_RED) || (*color == COL_YELLOW)) {
should be changed to
if ((*color == COL_RED) || (*color == COL_YELLOW) || (*color == COL_PURPLE)) {
Run make + make install (or copy xymond/xymond over to the bin/ directory).
I'll make this change for 4.3.12. Note that you'll have to restart Xymon for this to take effect.
Regards. Henrik
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
participants (2)
-
bb4@richter-it.net
-
henrik@hswn.dk