Search found 21 matches

by pilotmc
Mon Mar 23, 2020 12:04 pm
Forum: Open Source Nagios Projects
Topic: Logfile monitorin--Don't want recovery messages
Replies: 1
Views: 925

Logfile monitorin--Don't want recovery messages

Hello, all. I have several logfiles I monitor using check_log3 where I am using regex to create alerts at the warning level for specific events. These are accompanied by a RECOVERY alert the next time the check_log3 script runs and sees no more matches. Is there a way to suppress the recovery alerts...
by pilotmc
Mon Aug 14, 2017 11:35 am
Forum: Open Source Nagios Projects
Topic: Service dependency: Service OK if file present
Replies: 1
Views: 719

Service dependency: Service OK if file present

Hello. I'm trying to improve our monitoring by utilizing some advanced features of Nagios. In this case, I have 4 nodes that have monitored processes running. Generally, it would be a critical issue if any of those services stopped running, UNLESS a file exists on a specific host. I believe this can...
by pilotmc
Thu Aug 03, 2017 1:32 pm
Forum: Open Source Nagios Projects
Topic: SOLVED...External command for notification won't work
Replies: 20
Views: 8123

Re: External command for notification won't work

I found the issue. This host was reconfigured to use a proxy, and though it was set in /etc/profile.d/ and /etc/wgetrc, the nagios worker threads never got wind of it, and therefore they WERE actually timing out waiting on the connection (which never got through). So, word to the wise... check for p...
by pilotmc
Wed Aug 02, 2017 10:36 pm
Forum: Open Source Nagios Projects
Topic: SOLVED...External command for notification won't work
Replies: 20
Views: 8123

Re: External command for notification won't work

No, I don't.
What can we do moving forward? How can I get you guys the information you need to help get this resolved?
by pilotmc
Wed Aug 02, 2017 4:42 pm
Forum: Open Source Nagios Projects
Topic: SOLVED...External command for notification won't work
Replies: 20
Views: 8123

Re: External command for notification won't work

Thanks, tgriep. I wrote it. It does not rely on any ENV scripts, just what is passed in from Nagios through the command. <?php // Nagios-Slack Interface // // Sends alerts to Slack using the Slack API // /* Variables from the notification command: NAGIOS_HOSTNAME=$1 NAGIOS_SERVICEDISPLAYNAME=$2 NAGI...
by pilotmc
Wed Aug 02, 2017 12:28 pm
Forum: Open Source Nagios Projects
Topic: SOLVED...External command for notification won't work
Replies: 20
Views: 8123

Re: External command for notification won't work

Yes, I'm trying another language in case the perl is somehow the problem (it isn't...it's always worked in the past...it just stopped working at some point). Here are the command configs: # 'notify-service-by-slack' command definition define command { command_name notify-service-by-slack command_lin...
by pilotmc
Tue Aug 01, 2017 12:52 pm
Forum: Open Source Nagios Projects
Topic: SOLVED...External command for notification won't work
Replies: 20
Views: 8123

Re: External command for notification won't work

Can you post how you test the command from the command line so I can see the steps you are doing to run it? Then, run the following commands and post the output. su - nagios ls -l /tmp ls -l /usr/local/bin /usr/local/bin/slack_nagios.sh Thanks Thanks, tgriep... root@monitor:/usr/local/nagios/var# s...
by pilotmc
Tue Aug 01, 2017 12:48 pm
Forum: Open Source Nagios Projects
Topic: SOLVED...External command for notification won't work
Replies: 20
Views: 8123

Re: External command for notification won't work

Nagios says the command ran in nagios.debug, but timed out in nagios.log. I still never saw the alert get to Slack: nagios.debug: [1501609307.790615] [032.2] [pid=27309] ** Notifying contact 'slack' [1501609307.790623] [032.2] [pid=27309] Raw notification command: /usr/bin/php /usr/local/bin/slack_n...
by pilotmc
Tue Aug 01, 2017 10:03 am
Forum: Open Source Nagios Projects
Topic: SOLVED...External command for notification won't work
Replies: 20
Views: 8123

Re: External command for notification won't work

Just as I thought... Nagios never even calls the external command on the notification... it just says "timed out after 0.00 seconds".
So, Nagios can't or won't send the notification

Any other ideas?
by pilotmc
Tue Aug 01, 2017 9:15 am
Forum: Open Source Nagios Projects
Topic: SOLVED...External command for notification won't work
Replies: 20
Views: 8123

Re: External command for notification won't work

Thanks, tgriep. Yes, I've tested the command from the command line and it works all the time. It's a curl call to Slack's API in order to send alerts to a specific channel. I'm going to replace the script with a very simple one that just logs what's being passed in (again) to see if Nagios actually ...