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: 450.357.7000 x7064 C: 514.603.0986 F: 450.357.7050 www.batiparbarrette.com <http://www.batiparbarrette.com>
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 <D261762076EC624C96BEF1B49F4AE8700125E05E at stjs-ex01.barrette.wan>, "Raymond, David" <David.Raymond at ca.ebarrette.com> 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: 450.357.7000 x7064 C: 514.603.0986 F: 450.357.7050 www.batiparbarrette.com <http://www.batiparbarrette.com>
David
On Tue, Jun 5, 2012 at 11:51 PM, Raymond, David < David.Raymond at ca.ebarrette.com> 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.
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
participants (3)
-
David.Raymond@ca.ebarrette.com
-
jlaidman@rebel-it.com.au
-
Phil.Crooker@orix.com.au