check_https not sedning email alerts
check_https not sedning email alerts
Hi,
I have configured nagios 3.4.1 with plugins version 1.4.16. I have configured check_https to monitor a https site.
the command used is
chek_command $user1$/check_http --ssl -H $HOSTADDRESS$ -t 60.
nagios is able to monitor the site perfectly but not sending any mail notifications on HARD states like WARNING, CRITICAL. The template used for this checking is also used to monitor another host resources, there i can get proper mail alerts(means no problem with service template). I also set the notification options for WARNING, CRITICAl,FLAPPING, RECOVERY. still not getting mail notifications on this checking.
Please help.
Regards,
I have configured nagios 3.4.1 with plugins version 1.4.16. I have configured check_https to monitor a https site.
the command used is
chek_command $user1$/check_http --ssl -H $HOSTADDRESS$ -t 60.
nagios is able to monitor the site perfectly but not sending any mail notifications on HARD states like WARNING, CRITICAL. The template used for this checking is also used to monitor another host resources, there i can get proper mail alerts(means no problem with service template). I also set the notification options for WARNING, CRITICAl,FLAPPING, RECOVERY. still not getting mail notifications on this checking.
Please help.
Regards,
Re: check_https not sedning email alerts
We'll need more information to help you with this, specifically: your object definitions for the service, any templates it uses, the contacts that are supposed to be notifified, and the notification command.
Re: check_https not sedning email alerts
Hi ,
thanks for the reply.. i have attached what you asked.. please look into that.. ask me if need more info....
Note: for the same definitions of service template and contact, i am able to get notifications for my other resource(linux server).
Please help
Thanks and regards,
thanks for the reply.. i have attached what you asked.. please look into that.. ask me if need more info....
Note: for the same definitions of service template and contact, i am able to get notifications for my other resource(linux server).
Please help
Thanks and regards,
- Attachments
-
- configs.txt
- requested info
- (5.78 KiB) Downloaded 259 times
Re: check_https not sedning email alerts
hi,
i have sent a reply to this post along with one attachment which consists of the information about my nagios configuration. i didnot see the post get moderated for 2days.
please help me in this issue.
Regards,
i have sent a reply to this post along with one attachment which consists of the information about my nagios configuration. i didnot see the post get moderated for 2days.
please help me in this issue.
Regards,
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: check_https not sedning email alerts
Hello puligilla,
Our support staff does not work on weekends, could you also provide which "check_https" you are using? There are a number of them available. Also are you providing any warning or critical values to it? Once again it may be one which is simple and only returns a critical if it is unreachable.
Our support staff does not work on weekends, could you also provide which "check_https" you are using? There are a number of them available. Also are you providing any warning or critical values to it? Once again it may be one which is simple and only returns a critical if it is unreachable.
Re: check_https not sedning email alerts
I can't see anything at first glance glaringly wrong with the configuration, when it switches to a hard state are you seeing messages generated in the "notifications" page? Is the page going down long enough to enter a hard state? Assuming you can see that Nagios tried to generate a notification then check /var/log/mail to see if there were any delivery errors?
I think at this stage it would be best to try and isolate at what stage Nagios is failing to deliver the alert.
I think at this stage it would be best to try and isolate at what stage Nagios is failing to deliver the alert.
Re: check_https not sedning email alerts
Hi,
Thanks for replies.
@slansing: I am using the default check_http with --ssl option. I am not providing any warning or critical values to it. Also at one situation i wrongly given "-ssl" instead of "--ssl", then, it sent some service notifications by saying "-ssl not known" like that.
Also, can you please provide me if there any better plugins for checking https sites.
@jsmurphy: When it switches to hard state i cant see any notifications in notifications page. The site was down long enough for one hour. nagios is not generating any notifications for the service for any of its states. as per my knowledge, in nagios.log, there should be a line generated for every checking by increasing the hard count upto the max_check_attempts if that service is in hard state. but in my case even if the site is in hard state a single line is generated with state "WARNING:HARD:1". this line remains all the way. no notification or no other line generated regarding this service.
I have compiled the plugins with openssl to check https sites, while configuring the nagios.
Regards,
Thanks for replies.
@slansing: I am using the default check_http with --ssl option. I am not providing any warning or critical values to it. Also at one situation i wrongly given "-ssl" instead of "--ssl", then, it sent some service notifications by saying "-ssl not known" like that.
Also, can you please provide me if there any better plugins for checking https sites.
@jsmurphy: When it switches to hard state i cant see any notifications in notifications page. The site was down long enough for one hour. nagios is not generating any notifications for the service for any of its states. as per my knowledge, in nagios.log, there should be a line generated for every checking by increasing the hard count upto the max_check_attempts if that service is in hard state. but in my case even if the site is in hard state a single line is generated with state "WARNING:HARD:1". this line remains all the way. no notification or no other line generated regarding this service.
I have compiled the plugins with openssl to check https sites, while configuring the nagios.
Regards,
Re: check_https not sedning email alerts
There are a number of plugins for this purpose, but you've said Nagios is monitoring the service just fine, so I'd stay with what you have. Switching plugins will not fix the notification issue.puligilla wrote:Also, can you please provide me if there any better plugins for checking https sites.
This indicates to me that the problem is with your Nagios configuration, not something external like your mail server. However, I couldn't find anything wrong with the configuration you provided.puligilla wrote:When it switches to hard state i cant see any notifications in notifications page. The site was down long enough for one hour. nagios is not generating any notifications for the service for any of its states. as per my knowledge, in nagios.log, there should be a line generated for every checking by increasing the hard count upto the max_check_attempts if that service is in hard state. but in my case even if the site is in hard state a single line is generated with state "WARNING:HARD:1". this line remains all the way. no notification or no other line generated regarding this service.
In your main nagios.cfg, try adding the number 32 to your current value of debug_level (or set it to 56 if it's not set yet). This will add notification information to the debug_file. Restart Nagios and check that file for any messages that seem relevant.
Re: check_https not sedning email alerts
Hi,
@ agriffin: i have modified the config file nagios.cfg as u said. but still not getting any notifications.
I have another nagios(which is integrated in a log manager called Alien Vault), there i am able to get mail alerts for the same site on check_https. The only difference i observed that, when my application gets down, in AlienVault nagios it shows "HTTP WARNING: HTTP/1.1 404 Not Found" but in my nagios it shows"HTTP WARNING: HTTP/1.1 404 Not Found - 492 bytes in 0.156 second response time". i think there might be something wrong that even the site is down, some bytes(492) are captured by my nagios. Is anything went wrong here?
regards,
Ravi
@ agriffin: i have modified the config file nagios.cfg as u said. but still not getting any notifications.
I have another nagios(which is integrated in a log manager called Alien Vault), there i am able to get mail alerts for the same site on check_https. The only difference i observed that, when my application gets down, in AlienVault nagios it shows "HTTP WARNING: HTTP/1.1 404 Not Found" but in my nagios it shows"HTTP WARNING: HTTP/1.1 404 Not Found - 492 bytes in 0.156 second response time". i think there might be something wrong that even the site is down, some bytes(492) are captured by my nagios. Is anything went wrong here?
regards,
Ravi
Re: check_https not sedning email alerts
The line agriffin asked you to change wasn't going to fix your problem... it was turning on debug output in the log files, to help us diagnose the problem. Nagios doesn't care what the content of the description is, so I doubt the additional information of 492 bytes etc will have any bearing on the problem.
Are you able to find the relevant parts of the log file for when the state changes and notification now that debug logging is enabled?
Are you able to find the relevant parts of the log file for when the state changes and notification now that debug logging is enabled?