Nagios plugin performance data in single graph

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Post Reply
SandrilaFriman
Posts: 9
Joined: Fri Jun 17, 2022 4:48 am

Nagios plugin performance data in single graph

Post 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.
DevinPomsilina
Posts: 5
Joined: Sun May 15, 2022 6:43 am

Re: Nagios plugin performance data in single graph

Post 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]
Post Reply