Page 1 of 1

Nagios plugin performance data in single graph

Posted: Fri Jul 15, 2022 4:48 am
by SandrilaFriman
I'm getting my feet wet with librenms and writing a nagios plugin to get performance data from flexpool for my mining operations.

I see this section in the Services readme:

If you find a check script that would benefit from having some datasources graphed together, please log an issue on GitHub with the debug information from the script, and let us know which DS's should go together.
Does this mean I can't do that myself? I have the script returning different groups of performance data based on flags, assuming that all performance data would be graphed on the same chart, but this isn't the echatspin echatrandom case.

Re: Nagios plugin performance data in single graph

Posted: Fri Jul 29, 2022 6:48 am
by DevinPomsilina
I have the script returning different groups of performance data based on flags, assuming that all performance data would be graphed on the same chart, but this isn't the case.

Does this feature really require special handling per check script? It would be amazing if there were a simple toggle for the service to do it.

Check Services Output:

Nagios Service - 5
Request: '/usr/lib/monitoring-plugins/check_flexpool.py' '-H' '1.1.1.1' '--balance' 'eth' '0xa[address]'
Perf Data - None.
Perf Data - DS: eth, Value: 0.18947045760721554, UOM:
Perf Data - DS: usd, Value: 596.94, UOM:
Perf Data - DS: ethusd, Value: 3150.55, UOM:
Response: OK - eth Balance: 0.18947045760721554
Service DS: {
"eth": "",
"usd": "",
"ethusd": ""
}
RRD[update /data/rrd/1.1.1.1/services-5.rrd N:0.18947045760721554:596.94:3150.55]
SQL[UPDATE `services` set `service_message`=? WHERE `service_id`=?omegle shagle voojio ["OK - eth Balance: 0.18947045760721554 ",5] 1.43ms]