Changing the default value of "Hide Process Messages" (when inspecting alert logs)

Steffen Poulsen sp at tdchosting.dk
Wed Oct 21 13:54:46 CEST 2009


Ended up doing a little patch to revert the behaviour for the checkbox to "Show Process Messages" (instead of "Hide Process Messages"):

diff cgi/history.c_org cgi/history.c
82c82
< int display_system_messages=TRUE;
---
> int skip_system_messages=TRUE;
260c260
<       printf("<td align=left valign=bottom CLASS='optBoxItem'><input type='checkbox' name='nosystem' %s> Hide Process Messages</td>",(display_system_messages==FALSE)?"checked":"");
---
>       printf("<td align=left valign=bottom CLASS='optBoxItem'><input type='checkbox' name='nosystem' %s> Show Process Messages</td>",(skip_system_messages==FALSE)?"checked":"");
468c468
<              display_system_messages=FALSE;
---
>              skip_system_messages=FALSE;
751c751
<       else if(display_system_messages==FALSE)
---
>       else if(skip_system_messages==TRUE)


From: Steffen Poulsen [mailto:sp at tdchosting.dk]
Sent: 21. oktober 2009 09:40
To: Nagios Users Mailinglist
Subject: [Nagios-users] Changing the default value of "Hide Process Messages" (when inspecting alert logs)

Hi,

I wonder if there is an easy way to change the default value of the "Hide Process Messages" checkbox when inspecting alert histories of hosts and services in Nagios?

We generate our Nagios centrally and reload it every 15 minutes, resulting in a lot of these messages in the log:

[2009-10-21 09:00:15] Nagios 3.0.6 starting... (PID=27677)
[2009-10-21 09:00:15] Caught SIGHUP, restarting...

They can be hidden by enabling the "Hide Process Messages" checkbox and clicking update - but only for the current view. If i.e. "Latest Archive" is clicked, the state of the checkbox is lost again.

So, it occured, simply changing the default value to not show the process messages looks like a sensible way to proceed for us.

Is there such a setting available?

Best regards,
Steffen

--

Venlig hilsen / Best regards

Steffen Poulsen
UNIX System Administrator
TDC Hosting A/S
Phone: +45 70 26 25 27
E-mail: sp at tdchosting.dk<mailto:ba at tdchosting.dk>
Web: www.tdchosting.dk<http://www.tdchosting.dk/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20091021/74669cf1/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
-------------- 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