Search found 69 matches

by Pitone_Maledetto
Thu Jul 26, 2018 6:14 am
Forum: Open Source Nagios Projects
Topic: Can't acces Nagios web interface
Replies: 30
Views: 9073

Re: Can't acces Nagios web interface

Hi Thomas,
please share your nagios apache configuration under /etc/apache2/sites-enabled/

Moreover have you looked the error/access logs under /var/log/apache2/ for clues?
Regards
by Pitone_Maledetto
Thu Jul 26, 2018 3:09 am
Forum: Open Source Nagios Projects
Topic: Event Handler stopped working! Part 3
Replies: 6
Views: 2968

Event Handler stopped working! Part 3

This episode is called "at wit's end" :) Thanks to scottwilkerson I managed to get more knowledge on how the timeperiods work, however last night and once before on the 23rd I was back to square one unfortunately. This is the timeperiod proposed: define timeperiod{ timeperiod_name hr-s3bt-...
by Pitone_Maledetto
Fri Jul 06, 2018 3:04 pm
Forum: Open Source Nagios Projects
Topic: Event Handler stopped working! Part 2
Replies: 7
Views: 2806

Re: Event Handler stopped working! Part 2

Thank you very much Scott!
Very helpful, have a nice weekend.
This can now be closed and I am looking forward to a full night sleep :)
Regards
by Pitone_Maledetto
Fri Jul 06, 2018 2:26 pm
Forum: Open Source Nagios Projects
Topic: Event Handler stopped working! Part 2
Replies: 7
Views: 2806

Re: Event Handler stopped working! Part 2

That is clear thanks.
So am I right to say that the timepriod above would be working between 22 and 24 and from 6 to 22?
by Pitone_Maledetto
Fri Jul 06, 2018 2:13 pm
Forum: Open Source Nagios Projects
Topic: Event Handler stopped working! Part 2
Replies: 7
Views: 2806

Re: Event Handler stopped working! Part 2

Thanks for the reply.
It is definetly me then; however I don't understand the logic.
I would like the resume of service between 22pm and 6am only every day.
Why my timeperiod is not good?
I would be glad if you could explain further.
Thanks
by Pitone_Maledetto
Fri Jul 06, 2018 5:13 am
Forum: Open Source Nagios Projects
Topic: Event Handler stopped working! Part 2
Replies: 7
Views: 2806

Event Handler stopped working! Part 2

Hi all, I have previously opened a thread regarding some issues with an event handler implemented using the $ISVALIDTIME$ macro which was resolved with the help of scottwilkerson here: https://support.nagios.com/forum/viewtopic.php?f=7&t=48971 However it has never successfully worked as intended...
by Pitone_Maledetto
Thu Jun 14, 2018 11:07 am
Forum: Open Source Nagios Projects
Topic: Event Handler stopped working!
Replies: 10
Views: 5575

Re: Event Handler stopped working!

Hi Scott, Thank you...yes I changed the script to accept 0 since I wanted to test during working hours. Anyway it seems fine and it successfully ran although I need to figuring out how to have it to write in the log when running as an event handler bash wrapper; when manually ran as you suggested th...
by Pitone_Maledetto
Thu Jun 14, 2018 4:03 am
Forum: Open Source Nagios Projects
Topic: Event Handler stopped working!
Replies: 10
Views: 5575

Re: Event Handler stopped working!

Well now it ran but I get: Warning: Service event handler command '/usr/local/nagios/libexec/eventhandlers/resume-hr-LService CRITICAL HARD 1 10.101.22.76 0' timed out after 0.00 seconds not sure what that means...but it did not work as expected. from nagios.cfg event_handler_timeout=65 Thanks
by Pitone_Maledetto
Thu Jun 14, 2018 2:42 am
Forum: Open Source Nagios Projects
Topic: Event Handler stopped working!
Replies: 10
Views: 5575

Re: Event Handler stopped working!

Hi Scott, I have debugged the code and use the macro $ISVALIDTIME$ in the correct manner like so. #!/bin/sh # $SERVICESTATE$=$1 # $SERVICESTATETYPE$=$2 # $SERVICEATTEMPT$=$3 # $HOSTADDRESS$=$4 # $ISVALIDTIME:hr-s3bt-nm$=$5 # What state is the service in? case "$1" in OK) # The service just...
by Pitone_Maledetto
Wed Jun 13, 2018 10:29 am
Forum: Open Source Nagios Projects
Topic: Event Handler stopped working!
Replies: 10
Views: 5575

Re: Event Handler stopped working!

Hi Scott, I see what you mean! Just to say that I am using $ISVALIDTIME$ in order to run the event handler just during the night. now I have the following: [1528903309] SERVICE EVENT HANDLER: stag-hr-gal-gw-01;LService;CRITICAL;HARD;1;resume-hr-LService [1528903309] wproc: SERVICE EVENTHANDLER job 5...