Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data not proccessing #46

Closed
laramy2020 opened this issue Nov 20, 2019 · 8 comments
Closed

Data not proccessing #46

laramy2020 opened this issue Nov 20, 2019 · 8 comments

Comments

@laramy2020
Copy link

Server Centos 7.7
Nagios core 4.4.3 (epel repo install)
nrdp 2.0.2
Client Centos 7.7
nsca 2.2.0

Passive commands send
image
Passive commands show up in the checkresults folder
image
Passive commands proccess (the folder automaticly empties)

Nothing showes up in nagios.log about the data being proccessed

Passive checks are enabled
Nagcmd has both apache and nagios users assigned to it
Selinux is disabled

@box293
Copy link
Contributor

box293 commented Nov 20, 2019

I'm not 100% clear what you mean by "Data not processing".

Nothing showes up in nagios.log about the data being proccessed

Do the host and service objects exist in Nagios? If they do then no logging occurs by default on known objects.

You may want to enable logging log_passive_checks=1 as per https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/configmain.html

@laramy2020
Copy link
Author

Ok sorry, forgot to mention
Yes it is defined, the hosts/services are still grey and pending
When running a test at ip/nrdp i still see nothing in nagios.log
I will give your logging config a test.

@laramy2020
Copy link
Author

That is already set as 1 in my config
so is accepting host and service passive checks.

@box293
Copy link
Contributor

box293 commented Nov 21, 2019

Try setting the debug level on and then restart Nagios.

sed -i 's/.*debug_level=.*/debug_level=-1/g' /usr/local/nagios/etc/nagios.cfg
service nagios restart

Then watch the file /usr/local/nagios/var/nagios.debug

When you are finished this turns debugging off:

sed -i 's/.*debug_level=.*/debug_level=0/g' /usr/local/nagios/etc/nagios.cfg
service nagios restart

@laramy2020
Copy link
Author

i saw nothing of interest show up. I can post the debug log here. i confirmed no revealing data shows.

@Bangaio65
Copy link

Check that you have the group sticky bit set:
chmod g+s ~nagios/checkresults/

@derekschrock
Copy link

It seems this could go two ways... install php-process to get the posix function to allow the chgrp or have the EPEL package g+s checkresults/.

@darrick
Copy link

darrick commented Jan 16, 2023

I had this same problem when trying to use it via a docker container based on alpine. Installing php7-posix fixed it.

I got the misleading error message: "nagios_command_group=nagios does not exist, not chgrp()ing". Which doesn't mean the group doesn't exist. It means the posix_getgrnam function does not exist.

Passive commands would show up in the checkresults folder and sticky bit was set. And then then commands would randomly disappear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants