check_esxi_hardware 20220708 released: Added JSON output for Zabbix compatibility

Written by - 0 comments

Published on - Listed in Hardware VMware Virtualization Monitoring


A new version of check_esxi_hardware, an open source monitoring plugin to monitor the hardware of VMware ESXi servers, is available.

The new version (20220708) adds the possibility to use a different output format, by adding a new parameter --format. This parameter currently allows either "string" or "json" as value.

Without setting the --format parameter, the default plugin output is a string:

$ ./check_esxi_hardware.py -H myesxi -U root -P "secret" -V hp
OK - Server: Cisco Systems Inc UCSC-C220-M5SX s/n: WZPXXXXXXXX Chassis S/N: WZPXXXXXXXX  System BIOS: C220M5.4.0.4r.0.0218212214 2021-02-18

By using --format json, the plugin's output shows up as JSON:

$ ./check_esxi_hardware.py -H myesxi -U root -P "secret" -V hp --format json
{"Bios Info": "System BIOS: C220M5.4.0.4r.0.0218212214 2021-02-18", "ChassisSerialNumber": "WZPXXXXXXXX", "GlobalStatus": 0, "SerialNumber": "WZPXXXXXXXX"}

With the additional --pretty parameter, the JSON output can be made more human readable:

$ ./check_esxi_hardware.py -H myesxi -U root -P "secret" -V hp --format json --pretty
{
    "Bios Info": "System BIOS: C220M5.4.0.4r.0.0218212214 2021-02-18",
    "ChassisSerialNumber": "WZPXXXXXXXX",
    "GlobalStatus": 0,
    "SerialNumber": "WZPXXXXXXXX"
}

The JSON output is needed if you use Zabbix as your monitoring software. Documentation of check_esxi_hardware has been updated.

Credits and thanks go to Marco Markgraf for pull request #65.



Add a comment

Show form to leave a comment

Comments (newest first)

No comments yet.

RSS feed

Blog Tags:

  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   Influx   Internet   Java   KVM   Kibana   Kodi   Kubernetes   LVM   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