Custom check not showing graph

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nagiosEngie
Posts: 104
Joined: Thu May 03, 2018 7:57 am

Custom check not showing graph

Post by nagiosEngie »

Hello Nagios Crew,
I have created a powershell script that I have my ncpa agent launch. the script will output jitter and ping stats as in image stats01.jpg.
This is what the script will output once launched:
SERVICE:OK - Average Jitter is 0.0475 ms - Average Return Time 22.3 ms|'Avarage_Jitter'=0.0475 ms;100;100;; 'Average_Ping'=22.3 ms;100;100;;

The problem is that I am unable to obtain a graph as per stat02.jpg image.

I have checked the /usr/local/nagios/share/perfdata/ relative to the server and there are no xml or rrd file relative to the up mentioned check.

Any ideas on why?
Thanks

Sandro
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Custom check not showing graph

Post by scottwilkerson »

the output format for the performance data is invalid, there should not be a space before ms

Update the plugin to change this

Code: Select all

SERVICE:OK - Average Jitter is 0.0475 ms - Average Return Time 22.3 ms|'Avarage_Jitter'=0.0475 ms;100;100;; 'Average_Ping'=22.3 ms;100;100;;
to this

Code: Select all

SERVICE:OK - Average Jitter is 0.0475 ms - Average Return Time 22.3 ms|'Avarage_Jitter'=0.0475ms;100;100;; 'Average_Ping'=22.3ms;100;100;;
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nagiosEngie
Posts: 104
Joined: Thu May 03, 2018 7:57 am

Re: Custom check not showing graph

Post by nagiosEngie »

Hello Scott,
thanks the suggestion it worked. Is there a way to not have both parameters in the same graph?

Thanks
Sandro
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Custom check not showing graph

Post by scottwilkerson »

nagiosEngie wrote:Hello Scott,
thanks the suggestion it worked. Is there a way to not have both parameters in the same graph?

Thanks
Sandro
You can view them separately if you go to Home -> Graphs -> Graph Explorer -> Scalable performance graphs tab
then you can select a single datasource
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nagiosEngie
Posts: 104
Joined: Thu May 03, 2018 7:57 am

Re: Custom check not showing graph

Post by nagiosEngie »

That was not what I intended. I was hoping that I could get the 2 results in 2 different graphs in the performance graph page associated to the check.
From what I read it looks like it is not possible. Do you confirm?

Thanks
SAndro
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Custom check not showing graph

Post by scottwilkerson »

nagiosEngie wrote:That was not what I intended. I was hoping that I could get the 2 results in 2 different graphs in the performance graph page associated to the check.
From what I read it looks like it is not possible. Do you confirm?

Thanks
SAndro
That is correct, that is not available at this time.
I will mention that you can however click on the label for each underneath the graph to toggle each of them on/off
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nagiosEngie
Posts: 104
Joined: Thu May 03, 2018 7:57 am

Re: Custom check not showing graph

Post by nagiosEngie »

Thanks
Lock it up.

Sandro
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Custom check not showing graph

Post by scottwilkerson »

nagiosEngie wrote:Thanks
Lock it up.

Sandro
Locking
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked