Thanks!!
Search found 9 matches
- Mon May 04, 2015 1:53 pm
- Forum: Open Source Nagios Projects
- Topic: Event Handler script not running
- Replies: 15
- Views: 6268
Re: Event Handler script not running
Finally working! 
Thanks!!
Thanks!!
- Mon May 04, 2015 12:37 pm
- Forum: Open Source Nagios Projects
- Topic: Event Handler script not running
- Replies: 15
- Views: 6268
Re: Event Handler script not running
OK, I tried adding nagios to the group using a different command.
I'll try the way you suggested and see what happens.
I'll try the way you suggested and see what happens.
- Mon May 04, 2015 12:35 pm
- Forum: Open Source Nagios Projects
- Topic: Event Handler script not running
- Replies: 15
- Views: 6268
Re: Event Handler script not running
The script is: #!/bin/sh case "$1" in OK) # The service just came back up, so don't do anything... echo "Policy server OK">> /usr/local/nagios/policy_log.log ;; WARNING) # We don't really care about warning states, since the service is probably still running... ;; UNKNOWN) # We d...
- Mon May 04, 2015 11:58 am
- Forum: Open Source Nagios Projects
- Topic: Event Handler script not running
- Replies: 15
- Views: 6268
Re: Event Handler script not running
Ok, there was a permission problem. Now it runs the script and I get the echo printouts, but it's ignoring the command:
Could it be a sudo problem?
Code: Select all
sudo nohup mono >/dev/null /opt/ulink/Tools/PolicyServer/uLinkPolicyServer.exe &- Mon May 04, 2015 11:49 am
- Forum: Open Source Nagios Projects
- Topic: Event Handler script not running
- Replies: 15
- Views: 6268
Re: Event Handler script not running
Code: Select all
/usr/local/nagios/libexec/eventhandlers$ grep nagios /etc/passwd
nagios:x:1001:1001::/home/nagios:/bin/sh- Mon May 04, 2015 11:35 am
- Forum: Open Source Nagios Projects
- Topic: Event Handler script not running
- Replies: 15
- Views: 6268
Re: Event Handler script not running
I'm sorry if this sounds stupid, but it doesn't look like i switched user, it looks like i switched environment.
- Mon May 04, 2015 11:27 am
- Forum: Open Source Nagios Projects
- Topic: Event Handler script not running
- Replies: 15
- Views: 6268
Re: Event Handler script not running
sudoer.
Tried switching but nothing happens:
/usr/local/nagios/etc/objects$ sudo su nagios
$ cd /usr/local/nagios/libexec/eventhandlers ./restart_ulink-policy
$
no errors but the script isn't running
Tried switching but nothing happens:
/usr/local/nagios/etc/objects$ sudo su nagios
$ cd /usr/local/nagios/libexec/eventhandlers ./restart_ulink-policy
$
no errors but the script isn't running
- Mon May 04, 2015 10:56 am
- Forum: Open Source Nagios Projects
- Topic: Event Handler script not running
- Replies: 15
- Views: 6268
Re: Event Handler script not running
Thanks for your reply. The output for the ls is: ls -l /usr/local/nagios/libexec/eventhandlers/restart_ulink-policy -rwxr-xr-x 1 nagios nagios 2815 May 3 14:40 /usr/local/nagios/libexec/eventhandlers/restart_ulink-policy I can't su to nagios because it's asking for a password and I don't know what i...
- Sat May 02, 2015 7:35 pm
- Forum: Open Source Nagios Projects
- Topic: Event Handler script not running
- Replies: 15
- Views: 6268
Event Handler script not running
I can't get the event-handler script to run. I'm not getting any errors in the log file and the script runs manually. Service: define service{ use local-service host_name localhost service_description restart ulink PolicyServer check_command check_ulink_procs!2:2!'uLinkPolicyServer' check_interval 2...