Search found 13 matches

by aramisbackwards
Mon May 15, 2017 2:47 am
Forum: Open Source Nagios Projects
Topic: nrpe when host is down and accepting command line arguments
Replies: 3
Views: 1151

Re: nrpe when host is down and accepting command line argume

The article you linked doesn't seem to cover the case where the server has a previous version but the clients have a newer version. In my case check_nrpe nagios server: NRPE v2.15 check_nrpe remote hosts: NRPE vnrpe-3.0 That probably means there shouldn't be a problem just updating nrpe on the serve...
by aramisbackwards
Mon May 08, 2017 10:05 pm
Forum: Open Source Nagios Projects
Topic: nrpe when host is down and accepting command line arguments
Replies: 3
Views: 1151

nrpe when host is down and accepting command line arguments

I have a remote host that accepts command line arguments from a remote server. For example, I have a custom command called check_storage_devices and I pass in the name of a disk, say vda4 or vda5. The remote host then checks if there is a disk called vda4 or vda5 on it by running the check_storage_d...
by aramisbackwards
Tue Mar 21, 2017 1:35 am
Forum: Open Source Nagios Projects
Topic: Is it possible to have mutual dependencies for events?
Replies: 1
Views: 638

Is it possible to have mutual dependencies for events?

I want to setup a network structure that works as below: Group 1 (Main) Host 1 Host 2 Host 3 Group 2 (Main) Host 4 Host 5 Host 6 What I want for this structure is for a notification / event_handler to be called if and only if all three hosts under a group are down/unreachable, else, simply default t...
by aramisbackwards
Tue Feb 07, 2017 11:32 pm
Forum: Open Source Nagios Projects
Topic: python script as event handler won't write to file
Replies: 14
Views: 6894

Re: python script as event handler won't write to file

Got it, thank you for digging through all that!
by aramisbackwards
Mon Feb 06, 2017 11:27 pm
Forum: Open Source Nagios Projects
Topic: python script as event handler won't write to file
Replies: 14
Views: 6894

Re: python script as event handler won't write to file

sorry, if that's the case i misspoke. What I basically mean is that if I change temp_path =/tmp to anything else (for example) temp_path=/a/different/path and then just execute an event handler and write to some file, regardless of what I change it to the folder will always be /tmp. It's really just...
by aramisbackwards
Sun Feb 05, 2017 9:01 pm
Forum: Open Source Nagios Projects
Topic: python script as event handler won't write to file
Replies: 14
Views: 6894

Re: python script as event handler won't write to file

what is the path you specified in your nagios.cfg file? specifying a file path in the script isn't the issue, it is specifying the output of the directive in the config file
by aramisbackwards
Thu Feb 02, 2017 8:48 pm
Forum: Open Source Nagios Projects
Topic: python script as event handler won't write to file
Replies: 14
Views: 6894

Re: python script as event handler won't write to file

Doesn't look like permissions are the issue. I tried this with a fresh install of 4.2.4, and have nagios configured as having root privileges. It still writes to temp no matter what I give it in the directive. Other thing I noticed is that it looks like nagios runs the event handlers from a subshell...
by aramisbackwards
Wed Feb 01, 2017 7:58 pm
Forum: Open Source Nagios Projects
Topic: python script as event handler won't write to file
Replies: 14
Views: 6894

Re: python script as event handler won't write to file

Actually even if I change the folder it still writes to temp. Right now my config is

Code: Select all

temp_path=/home/centos/testing/logs
but my intuition tells me that perhaps my nagios might not have permissions to cd into /home/centos and so it defaults to temp...maybe?

I'll try the relative path
by aramisbackwards
Wed Feb 01, 2017 12:41 am
Forum: Open Source Nagios Projects
Topic: python script as event handler won't write to file
Replies: 14
Views: 6894

Re: python script as event handler won't write to file

Okay, strange, I found out by searching for my file that nagios event handler was writing to a temp folder, and missed this line in the config: # TEMP PATH # This is path where Nagios can create temp files for service and # host check results, etc. temp_path=/tmp Process of elimination will eventual...
by aramisbackwards
Tue Jan 31, 2017 9:28 pm
Forum: Open Source Nagios Projects
Topic: python script as event handler won't write to file
Replies: 14
Views: 6894

python script as event handler won't write to file

Hi, I'm having a very weird issue that I've been trying to debug for the past two days and I simply can't figure out for the life of me what' s going on. Debug level is set to -1, Verbosity is set to 2. The python code has been stripped down to simply just printing to a file. The script is chmodded ...