Hi all,
I have copied and modified a check from GitHub to monitor Zerto VPG’s.
The check
https://github.com/lewiseason/check_zvm/blob/master/check_zvm_vpgs
I have slightly modified the check to only show the number of VPG’s not meeting SLA and omitted the VPG names.
The check has been added to local/lib/nagios/plugins and permissions have been set properly and is executable.
When I run the check from the command line the proper information is returned ( e.g. 2 VPGs not meeting their SLA)
In check_mk I have made a new check (under Host & Service Parameters -> Active Checks-> Classical active and passive checks) and created the appropriate tags to assign the check to a host.
When I do an inventory of the host and go to the services I see the correct information in the plugin output for the check.
However on the monitoring dashboard under status detail I only get (null)
After troubleshooting I am a bit at a loss, it looks like the exit status is passed correctly to check_mk (if I modify the number between the brackets after exit I see the status change) but not the line that is printed
just before the exit.
What am I missing here ?
Kind regards,
Klaas-Jan