Showing customized command output to the performance graph

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
axvers
Posts: 65
Joined: Tue Jan 08, 2019 8:31 pm

Showing customized command output to the performance graph

Post 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!
axvers
Posts: 65
Joined: Tue Jan 08, 2019 8:31 pm

Re: Showing customized command output to the performance gra

Post 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.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Showing customized command output to the performance gra

Post by benjaminsmith »

please lock this, thank you.
Great. Closing thread.

Thanks for posting the solution!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked