Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Nag Small Screen Featured

Rating
4 votes
Favoured:
0
Hits
249711
Files:
FileDescription
nss.pynss.py
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Nag Small Screen
Nag Small Screen is a minimalist web interface intended to be viewed on small screens such as on web-enabled phones and Blackberries. Rather than show your entire status grid, it shows only those hosts or services that are at critical or warning status.
This is a minimalist web interface intended to be viewed on small screens such as on web-enabled phones and Blackberries. Rather than show your entire status grid, it shows only those hosts or services that are at critical or warning status. It is implemented as a simple Python cgi script and has no other requirements.

Just drop it into your cgi-bin directory and make sure you have Python installed. The script will look for status.dat which is almost always located at /var/nagios/status.dat. (If your installation is different, just change the path in the script.)

Tested under Python 2.4.3 and Nagios 2.5 and Nagios 2.8

Reviews (2)
Hi, when using this script, i had an error message at the bottom of the page :

Traceback (most recent call last): File "/usr/local/nagios/sbin/nss.py", line 97, in ? app = Nag() File "/usr/local/nagios/sbin/nss.py", line 39, in __init__ self.service() File "/usr/local/nagios/sbin/nss.py", line 94, in service if current_state != "0": UnboundLocalError: local variable 'current_state' referenced before assignment

i just added that line (line 56 and 77) to avoid that error to be displayed :

global current_state

hope it will help other users of this usefull script.

Florent
byslash5toaster, December 4, 2010
1 of 2 people found this review helpful
Tested with V3.2
Might be useful for very small installations. This is *just* a listing of problems. Provides no links to the host or service pages.