Search found 4 matches

by leifa
Fri Mar 15, 2019 12:11 pm
Forum: Open Source Nagios Projects
Topic: event handler won't trigger
Replies: 5
Views: 1195

Re: event handler won't trigger

I have my answer, my user Nagios was /bin/false in /etc/passwd
Thx anyway for helping me
by leifa
Fri Mar 15, 2019 11:31 am
Forum: Open Source Nagios Projects
Topic: event handler won't trigger
Replies: 5
Views: 1195

Re: event handler won't trigger

ok
so i just tried
su nagios -c "/usr/bin/notify_critical_bdd arg1 arg2 arg3 arg4"

and it doesn't work but it worked whith another user so it's a rights problem, maybe the sudoers is not set up correctly.

I'm going to look into it thx :)
by leifa
Fri Mar 15, 2019 11:22 am
Forum: Open Source Nagios Projects
Topic: event handler won't trigger
Replies: 5
Views: 1195

Re: event handler won't trigger

ok the command
su nagios -c "/usr/bin/notify_critical_bdd arg1 arg2 arg3 arg4"
does not work

I tried it with another user and it worked so it seems to be a rights problem.

maybe the sudoers is not configured correctly i'm gonna look into it thx ;)
by leifa
Fri Mar 15, 2019 10:32 am
Forum: Open Source Nagios Projects
Topic: event handler won't trigger
Replies: 5
Views: 1195

event handler won't trigger

hi everyone, I'm new to this forum, but I really need help. I'm using CGI's and Mysql database to store information about health of my servers and reboot some of them if necessary, I'm trying to use the event handler from nagios to trigger a script that will make somme changes in database via CGI . ...