Search All Sites
Nagios Live WebinarsLet our experts show you how Nagios can help your organization.
Nag Small Screen Featured
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
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 :
hope it will help other users of this usefull script.