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.
Personal Internet VMware PHP Linux Shell Bluecoat Proxy Windows Hardware Virtualization Nagios MySQL DB Monitoring Mail Android Network Wyse Hacks Tomcat Postgres Apple Mac Backup BSD ZFS Solaris SmartOS Unix Multimedia Perl Database MongoDB CMS OTRS FreeBSD Wordpress LXC Nginx Proxmox DNS Graphics GlusterFS Security Chef HAProxy Icinga Ansible HTML MariaDB Containers Rancher Docker AWS ELK Kibana Logstash Filebeat Varnish PGSQL PostgreSQL ElasticSearch CouchDB Bash Macintosh Container Minio Grafana InfluxDB Databases NFS OSSEC SystemD Java Zoneminder Surveillance Elasticsearch SSL TLS Icingaweb2 Cloud Wireless Kubernetes Ubuntu