Search found 9 matches

by OTR
Wed Apr 22, 2020 12:27 pm
Forum: Open Source Nagios Projects
Topic: check_nrpe+systemd wildcard issue
Replies: 12
Views: 6750

Re: check_nrpe+systemd wildcard issue

Okay, so, yes, SELinux was definitely causing the issue. The difference in behavior based on how the service was launched just related to the associated contexts. The solution is very specific to my setup, but I will go through the steps I used to diagnose and fix the issue: Testing to see if SELInu...
by OTR
Thu Apr 16, 2020 1:17 pm
Forum: Open Source Nagios Projects
Topic: check_nrpe+systemd wildcard issue
Replies: 12
Views: 6750

Re: check_nrpe+systemd wildcard issue

Moving SELinux over to "Permissive" caused everything to start working as expected. So I think my colleague was onto something. I'll be brushing up on that and will report back here if/when I find a solution.
by OTR
Thu Apr 16, 2020 11:25 am
Forum: Open Source Nagios Projects
Topic: check_nrpe+systemd wildcard issue
Replies: 12
Views: 6750

Re: check_nrpe+systemd wildcard issue

A colleague of mine thinks this may relate to SELinux. I'll be investigating that today, if that's the issue I'll be sure to come back and report. For the heck of it, I'll share the other, different but similarly perplexing, issue. The other issue is on a different host. The command being used is &q...
by OTR
Thu Apr 16, 2020 9:27 am
Forum: Open Source Nagios Projects
Topic: check_nrpe+systemd wildcard issue
Replies: 12
Views: 6750

Re: check_nrpe+systemd wildcard issue

This is what I had to set the command as to get it to work: /usr/lib64/nagios/plugins/check_file_age -w 86400 -c 172800 -W 13000000 -C 100000000 -f "/backup/gerrit/daily/`date '+%Y%m%d'`_"'????_mysqldb.sql.gz' Additionally, I don't see any of your commands with the -f part single quoted, ...
by OTR
Wed Apr 15, 2020 3:38 pm
Forum: Open Source Nagios Projects
Topic: check_nrpe+systemd wildcard issue
Replies: 12
Views: 6750

Re: check_nrpe+systemd wildcard issue

I think the shell may be interpreting the ????. As a test, try hardcoding it to this: /usr/lib64/nagios/plugins/check_file_age -w 86400 -c 172800 -W 13000000 -C 100000000 -f '/backup/gerrit/daily/20200414_????_mysqldb.sql.gz' Does that work? I'll lab it up on mine as well. Edit: Yep, worked on mine...
by OTR
Wed Apr 15, 2020 11:52 am
Forum: Open Source Nagios Projects
Topic: check_nrpe+systemd wildcard issue
Replies: 12
Views: 6750

Re: check_nrpe+systemd wildcard issue

Did you do a su - nagios before starting it from the command line? I believe you would need to do that in order to make it an apples-to-apples comparison. I tried this, adding the "-" to the command. No change in behavior. What permissions do the directory and the file have? 555 / 755 bac...
by OTR
Tue Apr 14, 2020 2:18 pm
Forum: Open Source Nagios Projects
Topic: check_nrpe+systemd wildcard issue
Replies: 12
Views: 6750

Re: check_nrpe+systemd wildcard issue

Some more exact details: The command definition is as follows: /usr/lib64/nagios/plugins/check_file_age -w 86400 -c 172800 -W 13000000 -C 100000000 -f /backup/gerrit/daily/'date "+%Y%m%d"'_????_mysqldb.sql.gz When run from the command line on the host, or via check_nrpe when the nrpe daemo...
by OTR
Tue Apr 14, 2020 2:09 pm
Forum: Open Source Nagios Projects
Topic: check_nrpe+systemd wildcard issue
Replies: 12
Views: 6750

Re: check_nrpe+systemd wildcard issue

Did you do a su - nagios before starting it from the command line? I believe you would need to do that in order to make it an apples-to-apples comparison. I have su'd to nagios (I also tried it as my own userid, and as root, and as sudo-me) - in all cases of starting the daemon from the command lin...
by OTR
Mon Apr 13, 2020 4:07 pm
Forum: Open Source Nagios Projects
Topic: check_nrpe+systemd wildcard issue
Replies: 12
Views: 6750

check_nrpe+systemd wildcard issue

(EDIT: Issue identified and resolved. Culprit was SELinux. Second page of this thread contains my resolution) I have been experiencing an issue where check_file_age fails to expand wildcards, but only when the following conditions apply: 1) check_file_age is being called via check_nrpe from the Nagi...