Page 1 of 1
Custom Interface Changes and Rules
Posted: Tue Aug 21, 2012 9:43 am
by pmfunder
Hi All,
Got Nagios Core working and monitoring a local server. We have some company-specific services which NRPE can monitor, and are trying to see if we can customize some of the Host interface colors and options to reflect these services.
Basically, we would like a Host to appear RED on the Hosts page when a specific service is down (instead of only when the host is down). I've been digging around, mainly in the nagios/share folder at php and css files, but haven't found the source of the HOSTS page. Either way I'm not sure this is the best path to go down since I want to adjust the logic which feeds the page.
Any ideas or suggestions to get me down the right path? I figured I would ask before digging myself too deep of hole.
Best,
Phil
Re: Custom Interface Changes and Rules
Posted: Tue Aug 21, 2012 3:21 pm
by slansing
Though it is possible to change things like this it would take diving into C to actually make it work. There is an alternative though I am not sure it is exactly what you are looking for and that is custom front ends for Nagios Core:
http://exchange.nagios.org/directory/Ad ... -and-Skins
There are also quite a few floating around on other websites.
Re: Custom Interface Changes and Rules
Posted: Tue Aug 21, 2012 4:35 pm
by pmfunder
slansing wrote:Though it is possible to change things like this it would take diving into C to actually make it work.
Thanks for your reply. I think this sort of option is what I am looking for. Do you have a recommendation of which files to study and modify to potentially make something like this work?
Again: What we are trying to do is adjust which situations trigger a "Host Down", as in a specific service going down.
-Phil
Re: Custom Interface Changes and Rules
Posted: Tue Aug 21, 2012 4:50 pm
by slansing
The Nagios project is located at:
http://sourceforge.net/projects/nagios/#
It is compiled in C so you would have to edit the source and recompile it. What you are proposing to change is very fundamental to Nagios and would take quit a bit of work to do.
A bit more information on Host status triggers can be found here:
http://nagios.sourceforge.net/docs/3_0/hostchecks.html
Re: Custom Interface Changes and Rules
Posted: Wed Aug 22, 2012 9:50 am
by pmfunder
Thanks slansing. I already have Nagios installed, but was wondering which specific files contain the Host Status Triggers?
Also which specific plug-in checks the host status? Or is this referring to the generic services which run on a host (see below from the hosts checks doc)
"Host checks are performed by plugins, which can return a state of OK, WARNING, UNKNOWN, or CRITICAL. How does Nagios translate these plugin return codes into host states of UP, DOWN, or UNREACHABLE?"
Re: Custom Interface Changes and Rules
Posted: Mon Aug 27, 2012 2:11 pm
by pmfunder
Nagios XI offers many more options with regards to displays. This will work as our solutions.
Re: Custom Interface Changes and Rules
Posted: Mon Aug 27, 2012 2:26 pm
by slansing
Yes, Nagios XI is quite expansive in that department, glad you found it to be your solution.