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

Directory Tree

Nag Small Screen Featured

Rating
5 votes
Favoured:
0
Hits
262896
Files:
FileDescription
nss.pynss.py
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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 (3)
I have been using this for quite a while now on my Android phone, created a link on the phones home screen which opens it up, great for a quick status overview on the move, recently started having that Python warning mentioned in another review did as suggested and its working great again.
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.