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.
< 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=')
< 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.
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.
AWS Android Ansible Apache Apple Atlassian BSD Backup Bash Bluecoat CMS Chef Cloud Coding Consul Containers CouchDB DB DNS Database Databases Docker ELK Elasticsearch Filebeat FreeBSD Galera Git GlusterFS Grafana Graphics HAProxy HTML Hacks Hardware Icinga Icingaweb Icingaweb2 Influx Internet Java KVM Kibana Kodi Kubernetes LXC Linux Logstash Mac Macintosh Mail MariaDB Minio MongoDB Monitoring Multimedia MySQL NFS Nagios Network Nginx OSSEC OTRS Office PGSQL PHP Perl Personal PostgreSQL Postgres PowerDNS Proxmox Proxy Python Rancher Rant Redis Roundcube SSL Samba Seafile Security Shell SmartOS Solaris Surveillance Systemd TLS Tomcat Ubuntu Unix VMWare VMware Varnish Virtualization Windows Wireless Wordpress Wyse ZFS Zoneminder