Re: [Nagios-users] Nagios showing OK for service which is in CRITICAL state
On 23 Nov 2012, at 11:06, Assaf Flatto wrote: > On 23/11/12 07:38, Niall O Broin wrote: >> Had a bit of a panic this morning to get into the office and see that an SSL >> cert. had expired. By pure good luck I was in work very early so I got >> moving on a new cert. and having done that, I headed off to my Nagios status >> page because I was pretty sure that I had a check for this cert. in place. >> Sure enough, I did, but Nagios wasn't displaying an alert for its expiry, >> nor had it warned me that it was about to expire. >> >> I opened up the Services page and there I saw the following line, just as >> green as any of the others: >> >> >> SSL cert. YOUR-DOMAIN OK2012-11-23 08:28:58 207d 17h 2m 26s 1/4 >> CRITICAL - Cannot make SSL connection >> >> >> Now HOW on earth can Nagios be displaying CRITICAL - Cannot make SSL >> connection in the Status Information column while simultaneously showing >> OK in the Status column ? > What plugin are you using ? it could be that the text returned from the > check includes the Critical string but the execution exit code is 0 and > hence translated as OK by nagios My bad - I should have mentioned that I had already checked that - I am using the standard check_http plugin. But your asking that has anyway solved the problem, because it jogged my mind somehow. The check_http plugin outputs dates in U.S. format, and this is not configurable. I had a command definition which passed the output of the plugin through, so what Nagios was getting back was the result code from sed and not from the plugin. I've now written a little wrapper script which saves the result code and all is now sweetness and light. It would be nice if check_http's date output format were configurable :-( Kindest regards, Niall O Broin -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios showing OK for service which is in CRITICAL state
On 23/11/12 07:38, Niall O Broin wrote: > Had a bit of a panic this morning to get into the office and see that an SSL > cert. had expired. By pure good luck I was in work very early so I got moving > on a new cert. and having done that, I headed off to my Nagios status page > because I was pretty sure that I had a check for this cert. in place. Sure > enough, I did, but Nagios wasn't displaying an alert for its expiry, nor had > it warned me that it was about to expire. > > I opened up the Services page and there I saw the following line, just as > green as any of the others: > > > SSL cert. YOUR-DOMAIN OK 2012-11-23 08:28:58 207d 17h 2m 26s 1/4 > CRITICAL - Cannot make SSL connection > > > Now HOW on earth can Nagios be displaying CRITICAL - Cannot make SSL > connection in the Status Information column while simultaneously showing > OK in the Status column ? > > > > > Kindest regards, > > > > Niall O Broin > > > > What plugin are you using ? it could be that the text returned from the check includes the Critical string but the execution exit code is 0 and hence translated as OK by nagios . -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Nagios showing OK for service which is in CRITICAL state
Had a bit of a panic this morning to get into the office and see that an SSL cert. had expired. By pure good luck I was in work very early so I got moving on a new cert. and having done that, I headed off to my Nagios status page because I was pretty sure that I had a check for this cert. in place. Sure enough, I did, but Nagios wasn't displaying an alert for its expiry, nor had it warned me that it was about to expire. I opened up the Services page and there I saw the following line, just as green as any of the others: SSL cert. YOUR-DOMAIN OK 2012-11-23 08:28:58 207d 17h 2m 26s 1/4 CRITICAL - Cannot make SSL connection Now HOW on earth can Nagios be displaying CRITICAL - Cannot make SSL connection in the Status Information column while simultaneously showing OK in the Status column ? Kindest regards, Niall O Broin -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null