I'm just curious what direction I would need to go in to add another option to the navbar on the left that combines host groups and service groups? I know it pulls all the info from status.cgi, and then the stylesheets format everything. Is this something that can be done easily?
Thanks!
Question regarding editing the CGIs
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Question regarding editing the CGIs
You would have to modify the C source and recompile the cgi's at the very least. Is it impossible, not at all, but it certainly is not extremely easy and definitely prone to introducing more issues.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
logic_bomb421
- Posts: 43
- Joined: Tue Jul 15, 2014 6:58 pm
Re: Question regarding editing the CGIs
Alright.
Is it at least feasible to modify the cgi's/stylesheets so the font/graph/chart sizes are bigger? Ultimately we want this information visible from ~10 feet in a display on the wall.
Is it at least feasible to modify the cgi's/stylesheets so the font/graph/chart sizes are bigger? Ultimately we want this information visible from ~10 feet in a display on the wall.
Re: Question regarding editing the CGIs
I believe the stylesheets are named after the CGI they are used by, so /usr/local/nagios/share/stylesheets/status.css is probably what you would need to modify. However not being a UI guy I can't say for sure what you would need to change. Looks like a lot of the sizes are the same though, so a sed replace should speed things up.
What core version are you on?
What core version are you on?
Former Nagios employee
-
logic_bomb421
- Posts: 43
- Joined: Tue Jul 15, 2014 6:58 pm
Re: Question regarding editing the CGIs
I'm currently on version 4.0.7.
I was playing around with some of those stylesheets yesterday and, while some things are pretty obvious (like font sizes), others seem pretty obscure. I can't seem to figure out how to make the overall 'chart' itself bigger.
I was playing around with some of those stylesheets yesterday and, while some things are pretty obvious (like font sizes), others seem pretty obscure. I can't seem to figure out how to make the overall 'chart' itself bigger.
Re: Question regarding editing the CGIs
That might be a tricky one. Zooming is not always straight-forward. I played around with it a bit and while I was able to zoom with some browser-specific hacks (for Firefox) the scaling would often overlap other elements:
http://stackoverflow.com/questions/1027 ... -do-in-css
http://css-tricks.com/almanac/selectors/d/descendant/
http://stackoverflow.com/questions/1027 ... -do-in-css
http://css-tricks.com/almanac/selectors/d/descendant/
Former Nagios employee