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
Custom check not showing graph
-
nagiosEngie
- Posts: 104
- Joined: Thu May 03, 2018 7:57 am
Custom check not showing graph
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
the output format for the performance data is invalid, there should not be a space before ms
Update the plugin to change this
to this
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;;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;;-
nagiosEngie
- Posts: 104
- Joined: Thu May 03, 2018 7:57 am
Re: Custom check not showing graph
Hello Scott,
thanks the suggestion it worked. Is there a way to not have both parameters in the same graph?
Thanks
Sandro
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
You can view them separately if you go to Home -> Graphs -> Graph Explorer -> Scalable performance graphs tabnagiosEngie wrote:Hello Scott,
thanks the suggestion it worked. Is there a way to not have both parameters in the same graph?
Thanks
Sandro
then you can select a single datasource
-
nagiosEngie
- Posts: 104
- Joined: Thu May 03, 2018 7:57 am
Re: Custom check not showing graph
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
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
That is correct, that is not available at this time.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
I will mention that you can however click on the label for each underneath the graph to toggle each of them on/off
-
nagiosEngie
- Posts: 104
- Joined: Thu May 03, 2018 7:57 am
Re: Custom check not showing graph
Thanks
Lock it up.
Sandro
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
LockingnagiosEngie wrote:Thanks
Lock it up.
Sandro