Martyrs

A plugin to check the status of a Dell systems warranty using dmidecode on Linux systems.
check_dell_warranty will use dmidecode to grab the system serial number, it will then make a query to Dell's website and parse the results and print out a return.

By default a warning is issued when the warranty will expire in 30 days and critical is issued when it is going to expire in 10 days. These defaults can be changed on the command line.

http://www.monitoringexchange.org/cgi-bin/page.cgi?g=Detailed%2F3094.html;d=1

update: Falls es noch keine neue Version gibt, bzw. Fehler bei critical und warning:

All you need to change is the following:

    if int(days_left) <= int(options.critical_days):
        print 'CRITICAL: Warranty start date: %s End date: %s Days left:
%s' \
        % (start_date, end_date, days_left)
        sys.exit(CRITICAL)
    elif int(days_left) <= int(options.warning_days):
        print 'WARNING: Warranty start date: %s End date: %s Days left:
%s' \
        % (start_date, end_date, days_left)
        sys.exit(WARNING)
    else:
        print 'OK: Warranty start date: %s End date: %s Days left: %s' \
        % (start_date, end_date, days_left)
        sys.exit(OK)

update2: es gibt eine neue Version
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Printed from: http://exdc.net/2009/05/27/martyrs/ .
© exdc 2010.

2 Comments   »

RSS feed for comments on this post , TrackBack URI

Leave a Reply

 
  • Rhythm of Time

    • Loading...
  • ?

  • damals