Nagios Operations Dashboard
We had an idea of putting up an operations monitoring screen in our workplace for more effecient discover alerts from nagios.
We found a php nagios dash app which parses status.dat (Nagios Dashboard – PHP)
We modified this to only show criticals/warnings, made a ajax interface for refreshing/showing the data, and modified the css a bit (Thanks Jonas!)
Here is the modified version:
dash.tar
To install just extract this on your nagios server and edit the $file in nagios_get.php to your status.dat file of your nagios
Here is a demo of the dash in real surroundings:
Tags: dashboard, monitoring, nagios

November 16th, 2009 at 11:21
Hi,
I’m not really good on editing php files.
Is there a way that I can put in a Page Title inside the webpage.
When I view using full screen the Page Title is not visible. Can it be put inside the webpage.
Sorry for my english.
Thanks
November 16th, 2009 at 15:18
Hi, Zeed.
Check this out:
http://pastebin.org/54152
November 17th, 2009 at 03:31
Cool… it’s work…
one more request…
can I put the page title at center and have it Bold
Thanks
November 18th, 2009 at 19:58
Hey,
thanks a lot for your script, I really like it ! I have one request though: I would like the script to exclude the services that are put in downtime (maintenance mode). I’ve been trying for a few hours to get it to do that but I can’t get it to work
in short: when the scheduled_downtime_depth0 it should not show the monitor … so I tried adding an array and then checking it, but for some reason it won’t work.
Could you guys implement this please ? That would be great !!
Thanks in advance
November 25th, 2009 at 08:42
Zeed: you really should learn some html..
TEXT HERE Makes text center and be bold.
Benjamin: Use scheduled downtime in nagios, or ack the services. They shouldnt show on the dash then.
November 25th, 2009 at 08:43
Edit:
ATT: Zeed
Check out center and strong html tags.
November 27th, 2009 at 08:38
hi there ! this seems really interesting. But instead of parsing status.dat (not really a good thing on large perimeters) why not use the mk_livestatus which permit to directly dialog with nagios (it consist of an eventbroker which listen on an unix socket, you write on the socket queries and then read the response on the same way… no io, nearly 0 cpu load!). Try it ! http://mathias-kettner.de/checkmk_livestatus.html. I wrote a little php class you could use instead of parsing the status.dat. Email me if you want the class (early alpha) soon published on nagios-fr wiki.
December 22nd, 2009 at 18:01
Hey MrBerry, i am the creator of the dashboard script. I am glad to see you, Zeed and Benjamin are able to make use of it. Drop me an email if you have any questions. David that php class is cool but from the tests i ran, reading from the status.dat didnt hammer the box at all. PHP has a relatively low overhead when using strpos it seems, i could be wrong. Aslong as the nagios box is failry powerful i believe io and cpu usage will be negligable.
nagiosgregorian@gmail.com
Cheers,
Gregorian
January 13th, 2010 at 08:13
Hi,
my apache2 error_log was spamed with (6.5GB in 12 hours)
PHP Notice: Undefined offset: 0 in /srv/www/htdocs/nagios_get.php on line 211, referer: https://nagios-cnsv.sozvers.at/nagios.php
this message comes also on other lines with other offsets
hope you will fix it
January 14th, 2010 at 10:37
@Norbert, make php less verbose? Either just the script, or your php config.
http://php.net/manual/en/function.error-reporting.php
January 18th, 2010 at 23:21
Hi,
Found this page while searching for different nagios dashboards. I’ve got a spare desktop & LCD, and I’d like to put them up at a cube at work to accomplish the same thing.
What size status.dat file do you guys typically use this with? Mine is about 3 MB right now, and my browser is just hanging trying to load the page.
Thanks!
January 18th, 2010 at 23:39
Update:
This hanging was caused by Norbert’s issue of all those “Undefined offset: 0″ — this can just be ignored by adding the following at the top of the file [ after the "<?php" line ]:
error_reporting(0);
No issues anymore. We have a ton of warnings we send off to other teams, so for our purposes there is some additional parsing to do within the PHP, but this is a great start.
Thanks again
January 20th, 2010 at 10:19
Hi I edited lines 209 and 225 to get rid of the php-warnings:
if (isset($servicearray[$servicecount]) && $servicearray[$servicecount] == “”)
Thanks for the updated dashboard!
Cheers.
January 20th, 2010 at 16:03
There seems to be a problem with ie 7 & 8 with the refresh not working correctly when displaying updates.
If you disable the AJAX caching at the beginning of the javascript section in nagios.php
$.ajaxSetup ({
// Disable caching of AJAX responses */
cache: false
});
Also I do agree with Daniel some ‘isset’ around the place would make everything cleaner. Great work anyway.
Thanks
January 20th, 2010 at 16:04
Sorry wasn’t clear there disabling the AJAX caching and it works fine with the M$ rubbish
January 23rd, 2010 at 06:29
Would it be possible to integrate an alert sound to the dashboard? So when an issue comes up it plays a alert sound.
Cheers,
darz
February 12th, 2010 at 16:54
We like this a lot. Been using it for a few months now, but did encounter one issue today. You can acknowledge a host being down which removes it from the dashboard, but it’s services still show up.
February 15th, 2010 at 11:59
IE 6 do not display anything…
no error and no status displayed
February 27th, 2010 at 20:06
What can I say, Muschl, you should have stopped using that browser about 10 years ago
April 28th, 2010 at 13:32
[...] The old dashboard we used earlier had a couple of issues. It showed all SOFT nagios states and it also listed every service pr host that was down. Since it’s pretty obvious that a service is down on a host that is down, we wanted to change that. Instead of continuing the rather hard work of changing the dirty status.dat parsing, we just dropped that project and checked out Merlin. Once installed and configured correctly, merlin will enable an eventbrokermodule in the nagiosconfig and update merlins mysql database via the eventbroker. The database contains all hosts and statuses state changes and so on, so this is what we ended up with : (Pic of our current dashboard in our office) [...]
April 28th, 2010 at 13:33
New dashboard:
http://dingleberry.me/2010/04/our-new-dashboard/
May 20th, 2010 at 09:54
I have installed Nagios Dashboard with no problems. However is it possible to display the hosts Alias field in the dash board, any advice please?
July 21st, 2010 at 14:18
Thank you for this great piece of software! our operations monitor is so more informative now.
July 21st, 2010 at 15:28
you might want to take a look at the new version of the board :
http://dingleberry.me/2010/04/our-new-dashboard/
May 30th, 2011 at 11:10
C’mon! “@Norbert, make php less verbose? Either just the script, or your php config.” Is NOT a solution!
@Norbert: I think you can fix it by changing 2 lines in nagios_get.php. Add “$servicecount>0 &&” in these 2 lines:
if ($servicecount>0 && $servicearray[$servicecount] != “”) { //if the host has a service being checked
if ($servicecount>0 && $servicearray[$servicecount] == “”) { //if the host has no service being checked
June 9th, 2011 at 14:59
We are now using this in our production environment.
It’s great. I’m no php expert, but is there a way to add a message saying “No problems” if there is no warning,critical or host down issues.
June 16th, 2011 at 15:54
Hey
Thanks for the helpful dashboard, should come in very handy!
Although had to disable the Service column as it seemed to pull out random services which confused some people
Anyone else come across this
Thanks
Mike
June 16th, 2011 at 16:59
Had a little play about and it seems this was caused by the fix suggested by skeeve
ended up just using error_reporting(0);
August 22nd, 2011 at 16:54
Rather than displaing the last check date – I would like to diplay the duration of the current alert (Last status change?) – Is there an easy way to modify the code to do this?
August 22nd, 2011 at 18:01
In case anyone else is looking for the answer… Replace line:
$lastcheck = ‘last_check=’;
with:
$lastcheck = ‘last_state_change=’;
This will show you the time the state last change, so you can see how old the alert it. I took it a bit further and showed the date as “1 hour, 4 mins”
October 8th, 2011 at 19:48
[...] Dejo aqui un link de descarga del software dash y su web oficial [...]
October 20th, 2011 at 12:02
Somehow the site isn’t able to view all services. There is only one service visible that is critical while there are 5. I must say that I have over 1000 services so maybe there is an issue with loading time? Any ideas?
pls mail me
November 17th, 2011 at 16:13
Excellent tool thankyou. Is there way display “no problem” if no critical problem? Thanks advance.
February 10th, 2012 at 18:26
We ran into some issues, our apache error_log was filling up very fast. the message was PHP Notice: Undefined offset 0 on line 208 and 224.
I’m not a programmer so I made an awful hack. I modified /dash/nagios_get.php on line 208
with if (isset($servicearray[$servicecount]) != “”) { //if the host has a service being checked
and 224 with
if (isset($servicearray[$servicecount])) {
I hope that someone with real php knowledge can fix this on a decent way.
It is by the way a perfect overview!.
March 8th, 2012 at 15:10
Hi,
it is possible to show ONLY hosts from selected HOSTGROUP?
Thanks!
April 17th, 2012 at 12:13
have you tested the dash, looks very good and would suit us.
but I have passive check that is not visible.
any suggestions ..?
(I’m not that good in php)
THX
May 4th, 2012 at 12:08
Why did you come to ? http://ujasesenunun.de.tl illegal bbs top Sophie is a bad bitch…phat ass and all of that…more sophie dee interracial scenes please…can never get enough of this girl
May 5th, 2012 at 21:23
Where did you go to university? http://boloyypaos.de.tl little tiny sluts I turned the music down as soon as I heard the first strains of the most overplayed song, save Freebird, in the dinosaur universe.
May 6th, 2012 at 04:44
Your cash is being counted http://umijijesobo.de.tl 13 teen porn galleries The guys jerks off most of the video! He took his dick off way too soon, he could’ve enjoyed that delicous asshole a bit more.
May 6th, 2012 at 04:44
Could you please repeat that? http://iohosokyry.de.tl hardcore teen anal Hilarious… she looks like she really wants to fuck the black guy, but is fucking the fat white guy cause he’s paying her… looks like there was a compromise to get her to do this scene!
May 6th, 2012 at 04:45
How many weeks’ holiday a year are there? http://ausupebyp.de.tl free teen rapes porn She was good On all counts , I Thought He was Going to Hold on to the Papers for another Incounter
May 7th, 2012 at 04:40
I’ve lost my bank card http://ilocabygifue.de.tl local porn models she breaks out this massive puss with flaps for four and he pops out this tiny little sawn off bratwurst…..typically german.
May 7th, 2012 at 20:28
How much will it cost to send this letter to ? http://lahulypubyca.de.tl arab models Only thing its missing is that cock stuffed all the way down her throat one good time….she is perfect in this