Page 1 of 2
Not Generating graphs
Posted: Fri Jul 26, 2013 1:35 pm
by aravindreddy114
Hi
I am monitoring the CPU and memory Usage of a process using check_ps.sh script
When i log into Nagios Server Web UI and I am not able to see graphs for the process i am monitoring in service details
I am able to see graphs for other checks like Disk Usage and Ping
Should I enable anything so that i can get graphs for the process i am monitoring using check_ps.sh script
Thanks
Re: Not Generating graphs
Posted: Fri Jul 26, 2013 1:39 pm
by abrist
Does that script return performance data?
Check the Details --> Advance tab for the service check. Do you see anything listed in the "performance data" field?
Re: Not Generating graphs
Posted: Fri Jul 26, 2013 4:17 pm
by aravindreddy114
When i goto Advanced tab for that service. Performance data shows enabled
Re: Not Generating graphs
Posted: Fri Jul 26, 2013 5:59 pm
by aravindreddy114
Please find the screenshot attached
Re: Not Generating graphs
Posted: Mon Jul 29, 2013 10:19 am
by lmiltchev
See if the RRD and XML files are updating in the "/usr/local/nagios/share/perfdata/<hostname>" for this service. You can also run the following command to fix the permissions (in case this is the issue):
Code: Select all
chmod -R +x /usr/local/nagios/share/perfdata/
Re: Not Generating graphs
Posted: Mon Jul 29, 2013 12:47 pm
by aravindreddy114
Hi
RRD and XML files are not updating for this service in /usr/local/nagios/share/perfdata/<hostname>
But RRD and XML files are updating for other services like CPU, Ping, memory stats
Can please let me know what should I do so that these files get updated
Re: Not Generating graphs
Posted: Mon Jul 29, 2013 7:33 pm
by scottwilkerson
The performance data that is returning has an erroneous ] at the end. This could be throwing this off.
Re: Not Generating graphs
Posted: Tue Jul 30, 2013 2:09 pm
by aravindreddy114
Can you please let me know what should i do to correct this
Thanks
Re: Not Generating graphs
Posted: Tue Jul 30, 2013 2:55 pm
by abrist
Edit the script. Or, if the script is small, post it here in code wraps and we may take a look.
Re: Not Generating graphs
Posted: Wed Jul 31, 2013 5:55 pm
by aravindreddy114
Sorry for the delayed response.
Please find the script attached to this mail