Performance graph not coming | service name related issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
hoegh
Posts: 201
Joined: Thu Jan 04, 2018 7:48 am

Performance graph not coming | service name related issue

Post by hoegh »

Hi Team,

I've configured an service in Nagios.
Nagios was not receiving Performance Data from the query, SO i customised the query to print performance data as well.

So now i'm getting output like below:

Code: Select all

[root@OSLMSnagios libexec]# ./check_nrpe -H oslas037 -c check_jmx_AS
JMX CRITICAL activeSessions=420 |'activeSessions'=420;100;300
The query output i customized to get above output & is working for all the servers & even this server [oslas037] too .
But the problem is whenever i'm changing Service Name to Active Sessions its not reading Performance Data.
But if Service name is Active Sessions Test or something else, it's displaying performance data.

Please help me & let me know what i'm doing wrong or if there something in cache etc.

I'm attaching two sanpshot of performace grapgh which are of same server oslas037 with same commands but different service name.
You do not have the required permissions to view the files attached to this post.
Thanks
Höegh
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Performance graph not coming | service name related issu

Post by npolovenko »

Hello, @hoegh. This perfdata syntax is correct:
JMX CRITICAL activeSessions=420 |'activeSessions'=420;100;300
Did you create a new service check definition in XI that is using this new command or did you just change the service name in the existing check?

The RRD file likely got corrupted. Can you run the following command and then upload the support.txt file from the /tmp/ folder?
ls -ld /usr/local/nagios/var/spool/perfdata > /tmp/support.txt
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
hoegh
Posts: 201
Joined: Thu Jan 04, 2018 7:48 am

Re: Performance graph not coming | service name related issu

Post by hoegh »

npolovenko wrote: Did you create a new service check definition in XI that is using this new command or did you just change the service name in the existing check?
I had created first service with name Active Sessions, but performance graph was missing. So i created another Service named Active Sessions test to test my performance graph.
Once it worked, i tried renaming it to Active Sessions but again performance graph was not visible.
I tried deleting Active Sessions service anme, recreating new service with name Active Sessions.
But whenever i'm using Active Sessions as service name, Graph is not coming.
ls -ld /usr/local/nagios/var/spool/perfdata > /tmp/support.txt
I've attached support.txt file. please have a look.
You do not have the required permissions to view the files attached to this post.
Thanks
Höegh
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Performance graph not coming | service name related issu

Post by npolovenko »

@hoegh, Sorry I've given you the wrong command. I wanted you to run the following command so I could see the list of RRD and XML files.
ls -lr /usr/local/nagios/var/spool/perfdata
Once it worked, i tried renaming it to Active Sessions but again performance graph was not visible
This could cause corruption to the rrd file. There's only 1 rrd file that gets created for each service. Changing the service definition will change the data coming to the RRD file and may populate the wrong fields.

My recommendation would be to look for the Active Sessions RRD and XML files in the /usr/local/nagios/var/spool/perfdata folder, delete them and wait 15 minutes for nagios to generate new files.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
hoegh
Posts: 201
Joined: Thu Jan 04, 2018 7:48 am

Re: Performance graph not coming | service name related issu

Post by hoegh »

npolovenko wrote:This could cause corruption to the rrd file. There's only 1 rrd file that gets created for each service. Changing the service definition will change the data coming to the RRD file and may populate the wrong fields.

My recommendation would be to look for the Active Sessions RRD and XML files in the /usr/local/nagios/var/spool/perfdata folder, delete them and wait 15 minutes for nagios to generate new files.
I deleted rrd & xml file located at /usr/local/nagios/share/perfdata/
issue resolved.


Please Close this thread.
Thanks :)
Thanks
Höegh
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Performance graph not coming | service name related issu

Post by npolovenko »

@hoegh, Awesome, I'll be closing this thread as resolved.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked