Page 1 of 1

Custom check not showing graph

Posted: Thu Nov 29, 2018 3:24 am
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

Re: Custom check not showing graph

Posted: Thu Nov 29, 2018 8:41 am
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;;

Re: Custom check not showing graph

Posted: Fri Nov 30, 2018 3:23 am
by nagiosEngie
Hello Scott,
thanks the suggestion it worked. Is there a way to not have both parameters in the same graph?

Thanks
Sandro

Re: Custom check not showing graph

Posted: Fri Nov 30, 2018 8:17 am
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

Re: Custom check not showing graph

Posted: Fri Nov 30, 2018 8:35 am
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

Re: Custom check not showing graph

Posted: Fri Nov 30, 2018 8:42 am
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

Re: Custom check not showing graph

Posted: Mon Dec 03, 2018 5:03 am
by nagiosEngie
Thanks
Lock it up.

Sandro

Re: Custom check not showing graph

Posted: Mon Dec 03, 2018 9:15 am
by scottwilkerson
nagiosEngie wrote:Thanks
Lock it up.

Sandro
Locking