Search found 14 matches
- Sun Apr 25, 2021 6:32 am
- Forum: Open Source Nagios Projects
- Topic: Event handler on hostgroups
- Replies: 6
- Views: 3272
Re: Event handler on hostgroups
Hi Benjamin Yes its a problem with what the script is doing. I got the script to log what its receiving and doing, and I see that the correct arguments are sent and with the correct sequence. However the script is meant to use expect to open an ssh session with the target server and run another scri...
- Fri Apr 23, 2021 4:56 am
- Forum: Open Source Nagios Projects
- Topic: Event handler on hostgroups
- Replies: 6
- Views: 3272
Re: Event handler on hostgroups
Yes its working, its a DNS check.
I just generalised it for posting here, it what happens when the dns service that its contacting, isn't running or failed.
The event handler is meant to try to restart the dns service.
I just generalised it for posting here, it what happens when the dns service that its contacting, isn't running or failed.
The event handler is meant to try to restart the dns service.
- Wed Apr 21, 2021 4:10 am
- Forum: Open Source Nagios Projects
- Topic: Event handler on hostgroups
- Replies: 6
- Views: 3272
Re: Event handler on hostgroups
Thanks for the reply! Im a little confused, I thought I was passing macros already by doing this: define command { command_name restart-x command_line $USER1$/eventhandlers/x_reset $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ $HOSTNAME$ $ARG1$ } Or do you mean I should do this? define service ...
- Tue Apr 20, 2021 8:23 am
- Forum: Open Source Nagios Projects
- Topic: Event handler on hostgroups
- Replies: 6
- Views: 3272
Event handler on hostgroups
Hi I am wondering what the proper configuration syntax is, in order to have event handler on a host group service. By this I mean, what is the correct way to inform the event handler service of the correct hostname/address to pass on to the event handlers script? Currently I have these defined: defi...
- Wed Jan 15, 2020 8:21 pm
- Forum: Open Source Nagios Projects
- Topic: How to add $HOSTNAME$ to hostgroup service eventhandler
- Replies: 3
- Views: 1165
Re: How to add $HOSTNAME$ to hostgroup service eventhandler
Thanks a lot!
Sorry the commented line was an oversight.
Sorry the commented line was an oversight.
- Wed Jan 15, 2020 8:40 am
- Forum: Open Source Nagios Projects
- Topic: How to add $HOSTNAME$ to hostgroup service eventhandler
- Replies: 3
- Views: 1165
How to add $HOSTNAME$ to hostgroup service eventhandler
Hi Im trying to create an event handler to affect a hostgroup service. I want the eventhandler to affect only the host that has a service affected and I am not sure I am doing this correctly. What I have configured: define service { use generic-service,service-pnp hostgroup_name ourgroup service_des...
- Sat Jun 17, 2017 3:56 pm
- Forum: Open Source Nagios Projects
- Topic: Nagios remote nrpe check_disk returns permission denied
- Replies: 3
- Views: 12919
Re: Nagios remote nrpe check_disk returns permission denied
Thanks a lot, that worked!
- Fri Jun 16, 2017 6:10 am
- Forum: Open Source Nagios Projects
- Topic: Nagios remote nrpe check_disk returns permission denied
- Replies: 3
- Views: 12919
Nagios remote nrpe check_disk returns permission denied
Hi! I have a problem with remote check_disk command using check_disk. The remote server (RHEL 7.2) has nrpe installed and when I run check_disk locally, I get correct response: /usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -A -X configfs -X cgroup -X tmpfs -X selinuxfs -X sysfs -X proc -X mqueu...
- Wed Apr 23, 2014 1:37 pm
- Forum: Open Source Nagios Projects
- Topic: Help with Nagios and NRPE Event Handlers
- Replies: 10
- Views: 6054
Re: Help with Nagios and NRPE Event Handlers
The script uses nrpe to run. No logging into the remote machine. But if it had to login remotely, please how would this work?
- Wed Apr 23, 2014 1:33 pm
- Forum: Open Source Nagios Projects
- Topic: Help with Nagios and NRPE Event Handlers
- Replies: 10
- Views: 6054
Re: Help with Nagios and NRPE Event Handlers
Thanks! I'll try this and report. I think I tried this way before and for some reason it didn't work.