Nagios check_dell_warranty Plugin Updated

It's been blogged about recently how cool the check_dell_warranty plugin by Erinn Looney-Triggs is. It solves a very real problem for us - sometimes servers run so well you forget to make sure that you renew your support contracts. However, it wasn't quite right for us - we have some older Dells that have RHEL 4 with an older (incompatible) python on them still. Also, the plugin wouldn't work without configuring sudo. Well, like any other sysadmin would do, I fixed it!

With a very small amount of code, I added the ability to specify the serial number on the command line with a -s parameter. This gives you a lot of flexibility:

  • It lets you run this plugin on older machines with older Python interpreters
  • It eliminates the dependency requiring a recent dmidecode
  • It eliminates the sudo dependency, no need to configure sudo
  • It gives you the ability to have your Nagios server check the warranty status on multiple hosts without using ssh/nrpe/etc.
  • If you don't use the -s flag, the plugin will function like before, using sudo and dmidecode to determine the service tag.

Erinn also found a bug at the same time I did where the check was working properly, but it would never return a WARNING or CRITICAL state. It's fixed now, so if you downloaded it before, make sure to get the most recent version.

Erinn was kind enough to include my changes in the main script, so go download it!

No votes yet

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <embed> <object> <param> <strike> <caption>
  • Lines and paragraphs break automatically.

More information about formatting options