I just defined a check in icinga2, which returns the display text of one of our printers.
This was done using the check_snmp_printer check.
The check returns (besides a return code) a string like “Printer ready”.
This metric does not show up in influx (I do not know why).
I would like to show up the text of the last check in grafana, but I do not have any idea how to implement this. Maybe anyone has a hint for this?
Of course I could modify the script to write the current state somewhere (web-server, text-file or something), but I would hope, that this can be done somehow directly with this tools…
Best regards and thanks in advance,