Highcharts work, mrtg graphs don't
Re: Highcharts work, mrtg graphs don't
Sure.
Here you go:
[root@nagios-48c ~]# ls -lR /usr/local/nagios/etc/pnp/
/usr/local/nagios/etc/pnp/:
total 76
-rw-rw-r-- 1 apache nagios 6952 Apr 16 11:30 background.pdf
drwxrwsr-x 2 apache nagios 4096 Apr 24 14:13 check_commands
-rw-rw-r-- 1 apache nagios 1718 Apr 16 12:08 check_dummy_copysense.rra.cfg
-rw-rw-r-- 1 apache nagios 2044 Apr 16 12:08 check_dummy_proxy_daily_txn_counts.rra.cfg
-rw-rw-r-- 1 apache nagios 2205 Apr 16 12:08 check_dummy_svn_repo_status.rra.cfg
-rw-rw-r-- 1 apache nagios 3417 Apr 16 11:30 config.php
-rw-rw-r-- 1 apache nagios 3090 Apr 23 15:57 npcd.cfg
-rw-rw-r-- 1 apache nagios 3090 Apr 16 11:30 npcd.cfg.ORIG
-rw-rw-r-- 1 apache nagios 4127 Apr 16 11:30 npcd.cfg-sample
drwxrwsr-x 2 apache nagios 4096 Apr 23 09:34 pages
-rw-rw-r-- 1 apache nagios 63 Apr 16 11:30 pnp4nagios_release
-rw-rw-r-- 1 apache nagios 793 Apr 24 15:53 process_perfdata.cfg
-rw-rw-r-- 1 apache nagios 793 Apr 16 11:30 process_perfdata.cfg.ORIG
-rw-rw-r-- 1 apache nagios 793 Apr 16 11:30 process_perfdata.cfg-sample
-rw-rw-r-- 1 apache nagios 524 Apr 16 11:30 rra.cfg
-rw-rw-r-- 1 apache nagios 524 Apr 16 11:30 rra.cfg.ORIG
-rw-rw-r-- 1 apache nagios 524 Apr 16 11:30 rra.cfg-sample
/usr/local/nagios/etc/pnp/check_commands:
total 16
-rw-rw-r-- 1 apache nagios 777 Apr 16 12:05 check_dummy_copysense.cfg
-rw-rw-r-- 1 apache nagios 813 Apr 16 12:05 check_dummy_proxy_daily_txn_counts.cfg
-rw-rw-r-- 1 apache nagios 813 Apr 16 12:06 check_dummy_svn_repo_status.cfg
-rw-rw-r-- 1 apache nagios 755 Apr 16 11:30 check_nwstat.cfg-sample
/usr/local/nagios/etc/pnp/pages:
total 4
-rw-rw-r-- 1 apache nagios 324 Apr 16 11:30 web_traffic.cfg-sample
Here you go:
[root@nagios-48c ~]# ls -lR /usr/local/nagios/etc/pnp/
/usr/local/nagios/etc/pnp/:
total 76
-rw-rw-r-- 1 apache nagios 6952 Apr 16 11:30 background.pdf
drwxrwsr-x 2 apache nagios 4096 Apr 24 14:13 check_commands
-rw-rw-r-- 1 apache nagios 1718 Apr 16 12:08 check_dummy_copysense.rra.cfg
-rw-rw-r-- 1 apache nagios 2044 Apr 16 12:08 check_dummy_proxy_daily_txn_counts.rra.cfg
-rw-rw-r-- 1 apache nagios 2205 Apr 16 12:08 check_dummy_svn_repo_status.rra.cfg
-rw-rw-r-- 1 apache nagios 3417 Apr 16 11:30 config.php
-rw-rw-r-- 1 apache nagios 3090 Apr 23 15:57 npcd.cfg
-rw-rw-r-- 1 apache nagios 3090 Apr 16 11:30 npcd.cfg.ORIG
-rw-rw-r-- 1 apache nagios 4127 Apr 16 11:30 npcd.cfg-sample
drwxrwsr-x 2 apache nagios 4096 Apr 23 09:34 pages
-rw-rw-r-- 1 apache nagios 63 Apr 16 11:30 pnp4nagios_release
-rw-rw-r-- 1 apache nagios 793 Apr 24 15:53 process_perfdata.cfg
-rw-rw-r-- 1 apache nagios 793 Apr 16 11:30 process_perfdata.cfg.ORIG
-rw-rw-r-- 1 apache nagios 793 Apr 16 11:30 process_perfdata.cfg-sample
-rw-rw-r-- 1 apache nagios 524 Apr 16 11:30 rra.cfg
-rw-rw-r-- 1 apache nagios 524 Apr 16 11:30 rra.cfg.ORIG
-rw-rw-r-- 1 apache nagios 524 Apr 16 11:30 rra.cfg-sample
/usr/local/nagios/etc/pnp/check_commands:
total 16
-rw-rw-r-- 1 apache nagios 777 Apr 16 12:05 check_dummy_copysense.cfg
-rw-rw-r-- 1 apache nagios 813 Apr 16 12:05 check_dummy_proxy_daily_txn_counts.cfg
-rw-rw-r-- 1 apache nagios 813 Apr 16 12:06 check_dummy_svn_repo_status.cfg
-rw-rw-r-- 1 apache nagios 755 Apr 16 11:30 check_nwstat.cfg-sample
/usr/local/nagios/etc/pnp/pages:
total 4
-rw-rw-r-- 1 apache nagios 324 Apr 16 11:30 web_traffic.cfg-sample
Re: Highcharts work, mrtg graphs don't
In the profile that you sent in, I found the following errors
It looks like you had some custom PNP templates and now they are missing. Do you have a backup copy that you could replace them with?
You may also want to check this log file for any more missing templates.
Code: Select all
2015-04-29 08:57:14 [9021] [2] No Custom Template found for check_dummy_no_txns_seen (/usr/local/nagios/etc/pnp/check_commands/check_dummy_no_txns_seen.cfg)
2015-04-29 08:57:14 [9021] [2] Template is check_dummy_no_txns_seen.php
2015-04-29 08:57:14 [9021] [2] No Custom Template found for check_xi_service_nsclient (/usr/local/nagios/etc/pnp/check_commands/check_xi_service_nsclient.cfg)
2015-04-29 08:57:14 [9021] [2] Template is check_xi_service_nsclient.phpYou may also want to check this log file for any more missing templates.
Code: Select all
/usr/local/nagios/var/perfdata.logBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Highcharts work, mrtg graphs don't
Nether of those files exist on the old server.
Which file calls the template? I should be able to comment out the unused, right?
Thanks,
-Jason
Which file calls the template? I should be able to comment out the unused, right?
Thanks,
-Jason
Re: Highcharts work, mrtg graphs don't
I found that those templates are created automatically so there isn't a config file that needs to edited to remove them.
Bad news is that the only way they are recreated is to delete the xml and rrd files associated with them which will delete all of the performance history for them.
So what you need to do is monitor this file for the "No Custom Template found"
Find the host that uses the service check with the missing template and under the following folder with the host name, the xml and rrd files need to be removed.
Once they are deleted, they will be recreated and your graphs should start to work for those service checks.
Bad news is that the only way they are recreated is to delete the xml and rrd files associated with them which will delete all of the performance history for them.
So what you need to do is monitor this file for the "No Custom Template found"
Code: Select all
/usr/local/nagios/var/perfdata.logCode: Select all
/usr/local/nagios/share/perfdataBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Highcharts work, mrtg graphs don't
How does one look up a host by template?
Re: Highcharts work, mrtg graphs don't
Login to the NagiosXI server in a shell.
Change to this directory.
Look for the missing template message in the perfdata.log file and do a search like this.
This will bring up all of the files that have that template in it.
Open up those files, search for "check_dummy_no_txns_seen" and you should get the host_name and the service_description that you need.
That is just one example on how to do that.
Change to this directory.
Code: Select all
cd /usr/local/nagios/etcCode: Select all
grep -R check_dummy_no_txns_seenOpen up those files, search for "check_dummy_no_txns_seen" and you should get the host_name and the service_description that you need.
That is just one example on how to do that.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Highcharts work, mrtg graphs don't
Hi,
find ./ -type f | xargs grep check_dummy_no_txns_seen | wc -l
923
I'd hate to delete these then realize I actually needed them. So before I remove the RRD and XML files, can we say this is the cause of the old style MRTG graphs not showing up?
Thanks,
-J
find ./ -type f | xargs grep check_dummy_no_txns_seen | wc -l
923
I'd hate to delete these then realize I actually needed them. So before I remove the RRD and XML files, can we say this is the cause of the old style MRTG graphs not showing up?
Thanks,
-J
Re: Highcharts work, mrtg graphs don't
From what I read, those templates change how the data is stored in the rrd files so it could be the issue.
For a test, delete one of the bad files and see if it fixes the graphs.
For a test, delete one of the bad files and see if it fixes the graphs.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Highcharts work, mrtg graphs don't
Hello,
I removed one of the RRD and XML files, and no change.
Any other things I might be able to try?
If there is any documentation on how the MRTG style graphs are created, please link it.
I have no idea how to troubleshoot this.
Thanks,
-Jason
I removed one of the RRD and XML files, and no change.
Any other things I might be able to try?
If there is any documentation on how the MRTG style graphs are created, please link it.
I have no idea how to troubleshoot this.
Thanks,
-Jason
Re: Highcharts work, mrtg graphs don't
Could you run the following and post back the results?
Can you upload the new xml file that that was recreated after you deleted it so we can see the settings in it?
Could you upload the following files too?
Code: Select all
rrdtool -VCould you upload the following files too?
Code: Select all
/usr/local/nagios/share/pnp/templates.dist/default.php
/usr/local/nagios/share/pnp/templates.dist/default.php.ORIGBe sure to check out our Knowledgebase for helpful articles and solutions!