performance data empty
performance data empty
Hello,
I want to use Nagios and PNP4Nagios to monitor my local server (Ubuntu 16.04 LTS). It's configured in NPCE Bulk mode and I want to monitor the local host. All performance data is saved in: /usr/local/pnp4nagios/var/perfdata/.pnp-internal/ .
PNP4Nagios still has error message: "perfdata directory "/usr/local/pnp4nagios/var/perfdata/localhost" is empty.". Probably because folder is hidden?
How can I fix this?
Thank you in advance.
Greetz Richard
I want to use Nagios and PNP4Nagios to monitor my local server (Ubuntu 16.04 LTS). It's configured in NPCE Bulk mode and I want to monitor the local host. All performance data is saved in: /usr/local/pnp4nagios/var/perfdata/.pnp-internal/ .
PNP4Nagios still has error message: "perfdata directory "/usr/local/pnp4nagios/var/perfdata/localhost" is empty.". Probably because folder is hidden?
How can I fix this?
Thank you in advance.
Greetz Richard
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: performance data empty
Is NPCD running? Please post the output of the following:
If that doesn't fix things, can you post these two files:
Code: Select all
service npcd status
Code: Select all
/usr/local/nagios/etc/pnp/process_perfdata.cfg
/usr/local/nagios/etc/nagios.cfg
Re: performance data empty
Npcd status is running:
root@homeserver:/home/richard# service npcd status
● npcd.service - LSB: pnp4nagios NPCD Daemon Version 0.6.25
Loaded: loaded (/etc/init.d/npcd; bad; vendor preset: enabled)
Active: active (running) since vr 2016-12-02 21:19:04 CET; 1 weeks 4 days ago
Docs: man:systemd-sysv-generator(8)
CGroup: /system.slice/npcd.service
└─29605 /usr/local/pnp4nagios/bin/npcd -d -f /usr/local/pnp4nagios/etc/npcd.cfg
Requested files are attached. Also added the ncpe log file.
root@homeserver:/home/richard# service npcd status
● npcd.service - LSB: pnp4nagios NPCD Daemon Version 0.6.25
Loaded: loaded (/etc/init.d/npcd; bad; vendor preset: enabled)
Active: active (running) since vr 2016-12-02 21:19:04 CET; 1 weeks 4 days ago
Docs: man:systemd-sysv-generator(8)
CGroup: /system.slice/npcd.service
└─29605 /usr/local/pnp4nagios/bin/npcd -d -f /usr/local/pnp4nagios/etc/npcd.cfg
Requested files are attached. Also added the ncpe log file.
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: performance data empty
What version of Core are you using? Was it compiled from source or installed from distro repos?
Also, PNP4Nagios is not our product, so you might get better results on their mailing list: https://lists.sourceforge.net/lists/lis ... gios-users
Of course, we can keep this open for community involvement here.
Also, PNP4Nagios is not our product, so you might get better results on their mailing list: https://lists.sourceforge.net/lists/lis ... gios-users
Of course, we can keep this open for community involvement here.
Re: performance data empty
Im using Nagios core version 4.2.2.
Put myself on the PNP4Nagios maillist. Do not know where to ask this question, could not find any forum for PNP4Nagios.
Put myself on the PNP4Nagios maillist. Do not know where to ask this question, could not find any forum for PNP4Nagios.
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: performance data empty
Your nagios.cfg has no enable_performance_data, and it should be set to 1. It seems like PNP4Nagios requires that but does not put it in the file. That is not a setting in our default nagios.cfg.
right above process_performance_data=1 seems like a good spot to me. Can you add that, restart the nagios service, and report back?
If that doesn't work, could you post the output of tail -100 /usr/local/nagios/var/nagios.log? Also could you PM me your /usr/local/nagios/var/objects.cache. That's probably overkill, but I only want it if adding enable_performance_data=1 doesn't fix the issue for you.
right above process_performance_data=1 seems like a good spot to me. Can you add that, restart the nagios service, and report back?
If that doesn't work, could you post the output of tail -100 /usr/local/nagios/var/nagios.log? Also could you PM me your /usr/local/nagios/var/objects.cache. That's probably overkill, but I only want it if adding enable_performance_data=1 doesn't fix the issue for you.
Last edited by dwhitfield on Wed Dec 14, 2016 2:48 pm, edited 1 time in total.
Reason: had user tag instead of icode tag
Reason: had user tag instead of icode tag
Re: performance data empty
Hi,
The parameter
Sent you the requested information by pm.
The parameter
is not allowed. I activated it but after restart of the nagios, there was an error. After changing it back, nagios log is error free.enable_performance_data=1
Sent you the requested information by pm.
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: performance data empty
Unfortunately, I did not get the PM.
You said you are using bulk mode. What happens if you change it to sync mode? Again, I have limited experience with PNP, but that seems to fix these issues for some people.
I don't know how enable_performance_data interacts with PNP, but it's certainly odd that the configs say it is required and then the configs don't work with it in there. If the sync mode doesn't "fix" the issue, we'll do more digging on enable_performance_data. Also, just so we know ahead of time, is there a reason you use bulk mode? If sync mode works, will it work as a permanent fix?
You said you are using bulk mode. What happens if you change it to sync mode? Again, I have limited experience with PNP, but that seems to fix these issues for some people.
I don't know how enable_performance_data interacts with PNP, but it's certainly odd that the configs say it is required and then the configs don't work with it in there. If the sync mode doesn't "fix" the issue, we'll do more digging on enable_performance_data. Also, just so we know ahead of time, is there a reason you use bulk mode? If sync mode works, will it work as a permanent fix?
Re: performance data empty
I will switch back to sync mode. Let you know the results.
I just switched from sync to NPCD bulk mode
. Also in sync mode no data was collected. did not show any error. I found another message on a forum which advised to switch to NPCD bulk mode.
In nagios only the parameter is described. No mention of parameter .
PS I have compiled PNP it on the host itself
I just switched from sync to NPCD bulk mode
![Smile :)](./images/smilies/icon_e_smile.gif)
Code: Select all
verify_pnp_config -m sync -c /usr/local/nagios/etc/nagios.cfg -p /usr/local/pnp4nagios/etc
In nagios only the parameter
Code: Select all
process_performance_data=1
Code: Select all
enable_performance_data=1
PS I have compiled PNP it on the host itself
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: performance data empty
Good catch! I saw that too which made me curious if reversing it would work for you.sneppie wrote:I found another message on a forum which advised to switch to NPCD bulk mode.
I never got a PM from you with the objects.cache. If it's too big to PM, please PM me and I will send you my email address.