As I was working on my project of Nagios. I receive notification via email. But, as I was doing my research, I thought maybe there is a gadget for Windows 7 for monitor Nagios. Guess what, there is one called NagStatus
In this post, I will show how you can install NagStatus and setup Nagios server. If few minutes, you will be good to go.
I will try to make it short. So, to know more about NagStatus : visit http://nagstatus.com
Before start, I am using :
Nagios Core 3.5 running under Debian 7 : If you want to know how to install, see my other post…
Using Windows 7
NagStatus 1.5.3 : Link
Lib-Perl installed : apt-get install libxml-perl libxml-libxml-perl -y
First of all, we will setup the client NagStatus. So, download and execute the gadget
1. Give the Title you want
2. For url : make sure you do not miss HTTP:// (I pass 1 hour to find out … otherwise it will not work… anyway, it did not work for me ) so, your Nagios server ip : http://NagiosIP/nagios
3. Leave it blank unless you did not install with default setting while installing Nagios Core CGI-BIN
4. User name and password
5. Refresh time put more seconds if you have many servers… otherwise it will use more CPU
6. Optional : if you want a custom sound for alert 🙂
Once everything enter, Click OK to complete.
After that, go to windows explorer to grad cgi file nagstatus.
For windows 7, you can find that at : %USERPROFILE%\AppData\Local\Microsoft\Windows Sidebar\Gadgets\Nagstatus1.5.3.gadget\XMLProviderScript
Or, you can do search in your windows explorer
Or, Click here to download the cgi file : Link nagxmlstatus Once downloaded, you have to change the extension txt to cgi.
After that, connect to your server and upload the cgi file that I just mention above.
You have to put that in sbin folder. For the default installation, it is : /usr/local/nagios/sbin/
When you copied the file to that folder, make sure that nagios have access and chmod to the file is same as other files 766
To do that, if you are connected as root, go to /usr/local/nagios/sbin
chmod 766 nagxmlstatus.cgi
chown nagios:nagios nagxmlstatus.cgi
Once that’s done, open nagxmlstatus.cgi and change the $STATUSFILE path to your own path file: the file called status.dat
For default installation, it is located at /usr/local/nagios/var/status.dat
Finally, you may need to reload Nagios server but it is not necessary. The gadget should be working correctly.
If needed only : /etc/init.d/nagios reload
Go to your Windows Desktop and you should see your servers status
That’s it for today.
If you have any question or need more information, leave me a comment.
Disclaimer: All work shared in this post is property of IT Secure Net