Hi
We've found more services (tracking Windows service up/down) not keeping historical data
- should their related perfdata files be deleted & re-created by the system?
- files are sizeable, there is data in them, but it cannot be read?
In other cases, history files were never created in first place / "No performance graphs were found for this service"
Thank you
More services not keeping Historical Data
Re: More services not keeping Historical Data
The perf data databases can be picky and if the check changes to pull new data or even change the unit of measurement then the old rrd files may not display data. Manually removing them from the file system(/usr/local/nagios/share/perfdata/<hostname>/<servicedesc>.[rrd|xml]) and allowing them to regenerate automatically will resolve situations like that. Another common issues is that not all plugins will return perfdata in the first place. You can verify if a perfdata is available by looking at the Host or Service detail screen:
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: More services not keeping Historical Data
There is NO Perf Data at all (no files ever created) - strangely I've got same template for multiuple checks and there is a set of checks (All tracking various windows services) without perf data ever existed. I specifically set "Process Perf Data" to "ON", but still no graph.cdienger wrote:The perf data databases can be picky and if the check changes to pull new data or even change the unit of measurement then the old rrd files may not display data. Manually removing them from the file system(/usr/local/nagios/share/perfdata/<hostname>/<servicedesc>.[rrd|xml]) and allowing them to regenerate automatically will resolve situations like that. Another common issues is that not all plugins will return perfdata in the first place. You can verify if a perfdata is available by looking at the Host or Service detail screen:
Re: More services not keeping Historical Data
Does the Host or Service detail screen show perf data? If perfdata is not seen on the detail screen then perfdata is not returned an no files will be created - even if "Process Perf Data" is set to "ON".
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: More services not keeping Historical Data
Same Host shows perf data for other checks (CPU, RAM, DISK), just not the Windows Services checkscdienger wrote:Does the Host or Service detail screen show perf data? If perfdata is not seen on the detail screen then perfdata is not returned an no files will be created - even if "Process Perf Data" is set to "ON".
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: More services not keeping Historical Data
@dlukinski, I believe Windows Service Checks don't return any perfdata. There are just not enough variables for a graph to make sense. The windows service check either returns 1 - working or 2 - not working. So the whole graph would pretty much be a straight line.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: More services not keeping Historical Data
This would work. We still need Windows Service check history to be enabled, even if this is just the line with breaks.npolovenko wrote:@dlukinski, I believe Windows Service Checks don't return any perfdata. There are just not enough variables for a graph to make sense. The windows service check either returns 1 - working or 2 - not working. So the whole graph would pretty much be a straight line.
So how to do that?
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: More services not keeping Historical Data
@dlukinski, Check_nt doesn't support that. You'd need to come up with a wrapper script that would output 1 or 0 in the performance output depending on the check result.
WMI service check supports graphing. Or if you enable the NRPE portion of the nsclient and use the following command:
WMI service check supports graphing. Or if you enable the NRPE portion of the nsclient and use the following command:
./check_nrpe -H 192.xxx.xx.xx -p 5666 -c CheckServiceState -a ServiceName
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: More services not keeping Historical Data
Thank you, this mostly works, except for services with "$" in names (such as SQL services), what to do with these?npolovenko wrote:@dlukinski, Check_nt doesn't support that. You'd need to come up with a wrapper script that would output 1 or 0 in the performance output depending on the check result.
WMI service check supports graphing. Or if you enable the NRPE portion of the nsclient and use the following command:./check_nrpe -H 192.xxx.xx.xx -p 5666 -c CheckServiceState -a ServiceName
Re: More services not keeping Historical Data
Have you tried escaping the "$" as described in the KB article below?
https://support.nagios.com/kb/article/n ... d-168.html
https://support.nagios.com/kb/article/n ... d-168.html
Be sure to check out our Knowledgebase for helpful articles and solutions!