Page 1 of 1

Showing customized command output to the performance graph

Posted: Wed May 22, 2019 9:24 pm
by axvers
Hi support,

I need to show a customized command output history in the Nagios XI's performance graph (History performance data).

But after I setting up a command (written in python actually), and setting up a service bind with the command, then can't find a performance graph to show past data line graph.

It seems like if we setup with default cpu monitoring wizard, the performance graph can be found on the cpu load service item.


How to add our performance graph?

Is there any advanced output needed to add in the command (script)?

Or, is there other settings needed to be checked on Nagios XI?

----- update -----
Found some description in your pdf:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

But still don't know how to make my script generate the Performance Data field to show performance graph?
ex, something like:

Code: Select all

print("PerformanceData={'field1':value1,'field2':value2}")
Another question:
I missed the uploading plugin step, but after adding my script as a command and create a service, it still works.

what's the outcome for not uploading plugin step in this case?



Thanks!

Re: Showing customized command output to the performance gra

Posted: Thu May 23, 2019 1:47 am
by axvers
found it!

only need to add a pipe and kv-pair in the tail of printed msg to make xi show performance data.

Code: Select all

print("msgxxxxx |title=kpi")

please lock this, thank you.

Re: Showing customized command output to the performance gra

Posted: Thu May 23, 2019 1:56 pm
by benjaminsmith
please lock this, thank you.
Great. Closing thread.

Thanks for posting the solution!