Xymon Mailing List Archive search

red alert page

3 messages in this thread

list David Raymond · Tue, 5 Jun 2012 09:51:20 -0400 ·
Hi all,

 
I copy the nongreen.sh to redonly.sh, then I remove only the yellow for only get red alert.

If I go to url http://myserver/xymon-cgi/redonly.sh it work great but not in html.

 
I had in xymonmenu.cfg the same string as nongreen.html to get the "redonly.html"

But the system do not make one. What do I need to get it work ?

 
Thx all

 
David Raymond 
IT System Administrator | Administrateur Systèmes TI

Barrette

583 Grand-Bernier Nord, St-Jean-sur-Richelieu, Qc, CA, J3B 8K1
D: XXX.XXX.XXXX x7064 C: XXX.XXX.XXXX F: XXX.XXX.XXXX
www.batiparbarrette.com <http://www.batiparbarrette.com>;
list Phil Crooker · Wed, 06 Jun 2012 10:25:44 +1000 ·
In etc/tasks.cfg, you could add to the xymongen parameters, eg: 
    CMD xymongen $XYMONGENOPTS --report --nongreen-colors=red

This means that only red events would appear in the nongreen page.
Check out the xymongen man page for further info.

As to creating a new "non-green" webpage, can't help you there - I
don't know enough about xymon yet.

cheers, Phil

On 5/06/2012 at 11:21 PM, in message
<user-621181f5caa2@xymon.invalid>,
"Raymond,
quoted from David Raymond
David" <user-b68bb8c94f8b@xymon.invalid> wrote:
Hi all,

 
I copy the nongreen.sh to redonly.sh, then I remove only the yellow
for only 
get red alert.

If I go to url http://myserver/xymon-cgi/redonly.sh it work great but
not in 
html.

 
I had in xymonmenu.cfg the same string as nongreen.html to get the "redonly.html"

But the system do not make one. What do I need to get it work ?

 
Thx all

 
David Raymond IT System Administrator | Administrateur Systèmes TI

Barrette

583 Grand-Bernier Nord, St-Jean-sur-Richelieu, Qc, CA, J3B 8K1
D: XXX.XXX.XXXX x7064 C: XXX.XXX.XXXX F: XXX.XXX.XXXX
www.batiparbarrette.com <http://www.batiparbarrette.com>;  
 
list Jeremy Laidman · Fri, 8 Jun 2012 15:30:50 +1000 ·
David

On Tue, Jun 5, 2012 at 11:51 PM, Raymond, David <
quoted from Phil Crooker
user-b68bb8c94f8b@xymon.invalid> wrote:
Hi all,****

** **

I copy the nongreen.sh to redonly.sh, then I remove only the yellow for
only get red alert.****

If I go to url http://myserver/xymon-cgi/redonly.sh it work great but not
in html.
If you go to http://myserver/xymon-cgi/nongreen.sh you also get an
unformatted version.  Actually, (for me) they're both HTML, but neither
have CSS styles applied, so they look bland.  But both should look similar.
quoted from Phil Crooker

I had in xymonmenu.cfg the same string as nongreen.html to get the
“redonly.html”****

But the system do not make one. What do I need to get it work ?
The nongreen.html file is periodically created by xymongen, and its
filename is hard-coded and can't be changed.  You can only change the
extension from .html by modifying XYMONNONGREENEXT.

As far as I can tell, the script nongreen.sh is never used, but is made
available just in case you wanted to integrate the output into something
else (such as an email).  It does not create nongreen.html.  It may be a
hang-over from BigBrother.

If you want to create such a webpage, you can probably add a line to
xymonlaunch.cfg to run redonly.sh and send its output to redonly.html.  But
you'll only get the raw table with no style and no menus.  You'd have to do
some other stuff to get it to look integrated into Xymon.

J