Home Directory

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

Directory

mwellnitz

Reviews(1)
bymwellnitz, December 5, 2011
Good tool. But i got an
check-aacraid.py:47: DeprecationWarning: os.popen4 is deprecated.
check-aacraid.py:60: DeprecationWarning: os.popen4 is deprecated.

Please add this changes:
* after the includes
from subprocess import PIPE, Popen
* change line 47 to:
for line in Popen(["/usr/bin/sudo","/usr/StorMan/arcconf" , "GETCONFIG","1","LD"], stdin=PIPE, stdout=PIPE, close_fds=True).stdout:
* change line 60 to:
for line in Popen(["/usr/bin/sudo","/usr/StorMan/arcconf" , "GETCONFIG","1","AD"], stdin=PIPE, stdout=PIPE, close_fds=True).stdout:

And no Depricated warnungs will appear at ubuntu 10.04 LTS

Thanks for your good tool

PS: switching to WARNING State when Battery is loading creates too much messages. So i deleted that Feature (quick and dirty):
[...]
if bstatus.group(1) == "Charging":
#if check_status