host & service perfdata increasing alarmingly
Re: host & service perfdata increasing alarmingly
Take a look at pnp4nagios's web site at the link below for any information about reinstalling.
https://docs.pnp4nagios.org/pnp-0.6/start
https://docs.pnp4nagios.org/pnp-0.6/start
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: host & service perfdata increasing alarmingly
There is no information on re-installing or uninstalling pnp4nagios in the documentation. If anyone has any information or help for it, please do let me know.
Thanks,
Mithil
Thanks,
Mithil
Re: host & service perfdata increasing alarmingly
Since adding pnp4nagios is a manual process, there isn't a way to uninstall it, you would have to manually put back the changes that was done to the system.
But, if you re-install it, that should verify that the settings are correct and the system should start to process the performance data again.
Take a look at this section in that link for re-installing the way I think your server was previously setup.
But, if you re-install it, that should verify that the settings are correct and the system should start to process the performance data again.
Take a look at this section in that link for re-installing the way I think your server was previously setup.
Code: Select all
Bulk mode with NPCD
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: host & service perfdata increasing alarmingly
As i have inherited this server, i have no idea how this was setup and hence my concern. If i re-install pnp4nagios using bulk mode with npcd instructions, will it create any issue to the nagios server or i will be good to go?
Thanks!
Thanks!
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: host & service perfdata increasing alarmingly
Perhaps I've missed it, but I went through both of your threads, and it seems no one ever pointed you to https://support.nagios.com/kb/article.php?id=149
Perhaps it is because the title is a bit misleading. Really, the document is for any time you have extra data sources, which is, at a glance, every single error in your perfdata.log.
A lot of people have trouble with the first line, aka yum install perl-RRD-Simple -y
If you don't have it in yum, you can either add a repo that includes it or run the two following commands:
After that, the instructions should work as presented in the KB. If they do not, please let us know any errors you receive.
Perhaps it is because the title is a bit misleading. Really, the document is for any time you have extra data sources, which is, at a glance, every single error in your perfdata.log.
A lot of people have trouble with the first line, aka yum install perl-RRD-Simple -y
If you don't have it in yum, you can either add a repo that includes it or run the two following commands:
Code: Select all
cpan YAML
cpan RRD::Simple
Re: host & service perfdata increasing alarmingly
The link you sent was for a Ngaios XI server. I have a Nagios core 4. Will it be relevant to me?
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: host & service perfdata increasing alarmingly
Yes. rrdtool is used by many applications, including Nagios Core.
Re: host & service perfdata increasing alarmingly
./fix_ds_quantity.sh -d /usr/local/nagios/share/perfdata/
Should i make any changes to the above command before executing, with paths in my server? I have perfdata in /usr/local/pnp4nagios/ directory.
Let me know.
Thanks,
Mithil
Should i make any changes to the above command before executing, with paths in my server? I have perfdata in /usr/local/pnp4nagios/ directory.
Let me know.
Thanks,
Mithil
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: host & service perfdata increasing alarmingly
That's correct. You should run it against your perfdata directory.
Re: host & service perfdata increasing alarmingly
Nothing quite happened with the script. Here is the output:
[root@nagios-eqx-01 tmp]# ./fix_ds_quantity.sh -d /usr/local/pnp4nagios/var/perfdata
This script will add datasources to RRDs. It may require
up to 3x the current disk space used by the rrds that need
updated. Please make sure you have enough free space to
run this script.
This makes changes to your RRDs, so DOUBLE CHECK that you
have made a recent backup of the RRDs.
This script can take a long time to run (1h+), so it may
be best to run it during maintenance.
Are you sure? (y/n) y
Batch job confirmed by user.
Batch process started at Tue Feb 14 13:56:56 PST 2017
Populating list of RRDs from the dircetory: /usr/local/pnp4nagios/var/perfdata
Batch job finished at Tue Feb 14 13:56:56 PST 2017.
A total of 0 file(s) were updated with a total of 0 datasource(s).
Changes logged to the file /tmp/fix_rrd_ds.log
Also the 'fix_rrd_ds.log' file has the same contents of the output as above.
Any idea on why it didn't populate .rrd files?
[root@nagios-eqx-01 tmp]# ./fix_ds_quantity.sh -d /usr/local/pnp4nagios/var/perfdata
This script will add datasources to RRDs. It may require
up to 3x the current disk space used by the rrds that need
updated. Please make sure you have enough free space to
run this script.
This makes changes to your RRDs, so DOUBLE CHECK that you
have made a recent backup of the RRDs.
This script can take a long time to run (1h+), so it may
be best to run it during maintenance.
Are you sure? (y/n) y
Batch job confirmed by user.
Batch process started at Tue Feb 14 13:56:56 PST 2017
Populating list of RRDs from the dircetory: /usr/local/pnp4nagios/var/perfdata
Batch job finished at Tue Feb 14 13:56:56 PST 2017.
A total of 0 file(s) were updated with a total of 0 datasource(s).
Changes logged to the file /tmp/fix_rrd_ds.log
Also the 'fix_rrd_ds.log' file has the same contents of the output as above.
Any idea on why it didn't populate .rrd files?