I have worked around and i found a way to do it.
on the command i added the macro $ISVALIDTIME:non-workinghours$
and then on the script i just added the condition
if [ "$6" = '1' ]; then
....
fi
Search found 4 matches
- Tue Apr 15, 2014 1:07 pm
- Forum: Open Source Nagios Projects
- Topic: Different timeperiods for the same service
- Replies: 3
- Views: 2080
- Mon Apr 14, 2014 9:34 am
- Forum: Open Source Nagios Projects
- Topic: Different timeperiods for the same service
- Replies: 3
- Views: 2080
Different timeperiods for the same service
Hello guys, I'd like to check a service and do different thins depending on the time: Let's say: define service{ use generic-service service_description Service_PING host_name host1 check_command check_ping!2000.0,80%!5500.0,99% check_period nonworkhours max_check_attempts 10 retry_check_interval 3 ...
- Mon Apr 14, 2014 9:29 am
- Forum: Open Source Nagios Projects
- Topic: Service keeps OK status before retrys checks
- Replies: 2
- Views: 1293
Re: Service keeps OK status before retrys checks
Thats how I have done. I wrote a custom script. Thanks for the help.
- Fri Apr 04, 2014 7:25 am
- Forum: Open Source Nagios Projects
- Topic: Service keeps OK status before retrys checks
- Replies: 2
- Views: 1293
Service keeps OK status before retrys checks
Hello there guys, I've got a situation which is: I'm monitoring a service every five minutes and the status information is sent to the DB every five minutes consequently. The thing is: When service goes to critical, my application treats this as the service is out. Basically what i wanted is that be...