Dell warranty checking script

David Sparks dave at ca.sophos.com
Tue May 26 17:28:13 CDT 2009


Erinn Looney-Triggs wrote:
> This may or may not be useful to you folks. I have written a nagios
> plugin in python to grab the system serial number using dmidecode then
> make a call to Dell's website to check the status of the warranty. It is
> designed for nagios but you can run it from the command line all the
> same and get the pertinent info back.
> 
> Here is a link:
> http://www.monitoringexchange.org/cgi-bin/page.cgi?g=Detailed%2F3094.html;d=1
> 
> Please take a look at the caveats listed in the description. If you have
> any suggestions etc. please feel free to e-mail them to me.

Seems to for the correct warranty info, however the return code doesn't seem
to be working??  ie I would expect this server to return 2 for critical:

hq ~ # /usr/lib/nagios/plugins/check_warranty.py
Warranty start date: 11/29/2007 End date: 11/29/2008 Days left: 0
hq ~ # echo $?
0


Great idea for a monitoring script. :)

ds



More information about the Linux-PowerEdge mailing list