Header RSS Feed
 
If you only want to see the articles of a certain category, please click on the desired category below:
ALL Android Backup BSD Database Hacks Hardware Internet Linux Mail MySQL Monitoring Network Personal PHP Proxy Shell Solaris Unix Virtualization VMware Windows Wyse

Modified Nagios Plugin check_dell_warranty (Adapted to euro website)
Thursday - May 26th 2011 - by - (1 comments)

In the past few days, DELL worked on their warranty information website. The url has slightly changed which breaks the very useful Nagios plugin check_dell_warranty (it parses DELL's website for warranty information of the given service tag). 

For my own purpose I also mini-modified the plugin to use the euro (emea) instead of the US website. Here are the diff's compared to check_dell_warranty version 2.1.2. The bold formatted ones are the changes I made. Please note that also the US website URL slightly changed.

386,387c386,391
<     dell_url = ('http://support.dell.com/support/topics/global.aspx/support/'
<     + 'my_systems_info/details?c=us&l=en&s=gen&ServiceTag=')
---
>     #dell_url = ('http://support.dell.com/support/topics/global.aspx/support/'
>     #+ 'my_systems_info/details?servicetag=')

>
>     # 2011-05-26 Claudio New DELL URL
>     dell_url = ('http://support.euro.dell.com/support/topics/topic.aspx/emea/shared/support/'
>     + 'my_systems_info/en/details?servicetag=')


467c471,476
<         month, day, year = date.split('/')
---
>         #month, day, year = date.split('/')
>         #return datetime.date(int(year), int(month), int(day))
>
>       # European dateformat (28/06/2011)
>       # Claudio 2011-05-26
>         day, month, year = date.split('/')
>          return datetime.date(int(year), int(month), int(day))

As you see, these are really mini-modifications: URL changed, datehandling changed.

You can download 'check_dell_euro_warranty.py" here:

The purpose of my modification is to use the euro/emea website with the new URL, I don't want to replace the original plugin with this version. For feedback, feature requests, etc, the original author (Erinn Looney-Triggs) should be contacted.

 

Add a comment

Show form to leave a comment

Comments (newest first):

Matt C from Boston, MA wrote on Feb 8th, 2012:
Within the last couple of days the Dell site has changed, and I was able to use this modification in the python script to access the warranty information. Good job on this mini-modification. I didn't personally download the file, but simply created a copy of the file and made modifications by hand.


Go to Homepage home
Linux Howtos how to's
Monitoring Plugins monitoring plugins
Links links

Valid HTML 4.01 Transitional
Valid CSS!
[Valid RSS]

6938 Days
until Death of Computers
Why?