Page 1 of 1
Performance graph not coming | service name related issue
Posted: Wed Mar 27, 2019 9:59 am
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.
Re: Performance graph not coming | service name related issu
Posted: Wed Mar 27, 2019 10:37 am
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
Re: Performance graph not coming | service name related issu
Posted: Thu Mar 28, 2019 6:19 am
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.
Re: Performance graph not coming | service name related issu
Posted: Thu Mar 28, 2019 4:10 pm
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.
Re: Performance graph not coming | service name related issu
Posted: Fri Mar 29, 2019 5:31 am
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

Re: Performance graph not coming | service name related issu
Posted: Fri Mar 29, 2019 11:14 am
by npolovenko
@hoegh, Awesome, I'll be closing this thread as resolved.