Hi all,
I’ve written a plugin that polls for optical light data values on our core Cisco network (Tengig and Hundredgig optical interfaces) and returns the mW power values back as perfdata returned fields.
However, during testing after it was working, logging values and graping in pnp I then incorrectly added a UOM that was not valid (I misread the instructions and added mW as UOM). This caused it to stop logging as perfdata and it shows just now as the plugin output and not being parsed as perfdata.
How can I now delete/cancel that and force icinga2 to start treating it once again as valid perfdata?
My mistake output:
./check_optical -H testrouter-hostname.localhost -C test -d HundredGigE0/7/0/1
Optical HundredGigE0/7/0/1:OK 'Hu0/7/0/1-Tx Lane 1 Power'=1.5927mW 'Hu0/7/0/1-Rx Lane 1 Power'=1.2111mW 'Hu0/7/0/1-Rx Lane 3 Power'=1.1477mW 'Hu0/7/0/1-Rx Lane 2 Power'=1.5982mW 'Hu0/7/0/1-Rx Lane 0 Power'=1.5302mW 'Hu0/7/0/1-Tx Lane 0 Power'=1.7422mW 'Hu0/7/0/1-Tx Lane 2 Power'=1.6541mW 'Hu0/7/0/1-Tx Lane 3 Power'=1.8197mW
My now correct output:
./check_optical -H testrouter-hostname.localhost -C test -d HundredGigE0/7/0/1
Optical HundredGigE0/7/0/1:OK 'Hu0/7/0/1-Tx Lane 0 Power'=1.738 'Hu0/7/0/1-Tx Lane 3 Power'=1.83 'Hu0/7/0/1-Rx Lane 3 Power'=1.1493 'Hu0/7/0/1-Rx Lane 1 Power'=1.2126 'Hu0/7/0/1-Tx Lane 1 Power'=1.5924 'Hu0/7/0/1-Rx Lane 2 Power'=1.5914 'Hu0/7/0/1-Tx Lane 2 Power'=1.6582 'Hu0/7/0/1-Rx Lane 0 Power'=1.5302
And output from icingaweb2 showing the plugin output data not being correctly added now as perfdata:
Help please!
Thanks,
Andy