Re: [Nagios-users] Check_http status 503 gives 200 OK
again check_http -H -u http://www.testsomething.com is a proxy request. NOT an valid HTTP request Joerg Am 20.11.2012 um 08:35 schrieb Jaap van Arragon j.vanarra...@lukkien.com: Herewith define service{ use generic-service_24x7 host_name www1 service_description check http url check_command check_http! -u http://www.testsomething.com -w 5 -c 8 } This gives me a HTTP OK: HTTP/1.1 200 OK - 414 bytes in 0.002 second response time Back. But in the browser the check gives me a 503 statuscode back. The Nagios check_http script isn't detecting this 503 error message. Regards, Jaap On 11/20/12 8:20 AM, Joerg Linge pitchf...@ederdrom.de wrote: Please provide a complete example! check_http works correct since years Joerg Am 19.11.2012 um 23:00 schrieb Jaap van Arragon j.vanarra...@lukkien.com: Hey Joerg, The 4xx and 3xx error are handeld correctly but not the 5xx error ;-) any ideas? Regards, Jaap From: Joerg Linge [mailto:pitchf...@ederdrom.de] To: Nagios Users List [mailto:nagios-users@lists.sourceforge.net] Sent: Mon, 19 Nov 2012 18:07:52 +0100 Subject: Re: [Nagios-users] Check_http status 503 gives 200 OK Your example /usr/local/nagios/libexec/check_http -I ip address -u http://url -w1 -c2 is a proxy request! -I = ip address to connect to -H = HTTP/1.1 Host Header -u = relative url to fetch without protocol infos like http:// some examples check nagios.org OMD[gearman]:~/lib/nagios/plugins$ ./check_http -H nagios.org HTTP OK: HTTP/1.1 200 OK - 54919 bytes in 1.703 second response time |time=1.703114s;;;0.00 size=54919B;;;0 OMD[gearman]:~/lib/nagios/plugins$ host nagios.org nagios.org has address 96.126.126.159 ok, nagios .org runns on 96.126.126.159 lets check a non existing page. we got 404! OMD[gearman]:~/lib/nagios/plugins$ ./check_http -I 96.126.126.159 -H nagios.org -u /404 HTTP WARNING: HTTP/1.1 404 Not Found - 17141 bytes in 0.536 second response time |time=0.536015s;;;0.00 size=17141B;;;0 lets ask nagios.org for icinga.org ;) and we will get a 302 OMD[gearman]:~/lib/nagios/plugins$ ./check_http -I 96.126.126.159 -H icinga.org -u / HTTP OK: HTTP/1.1 302 Found - 242 bytes in 1.837 second response time |time=1.837209s;;;0.00 size=242B;;;0 Joerg Am 19.11.2012 um 17:14 schrieb Jaap van Arragon j.vanarra...@lukkien.com: Thank you for your reply. I¹ve tried the check without the ip adress option but it makes no difference. Any other ideas? Thanks. On 11/19/12 2:29 PM, Ryan Edwards wyi...@gmail.com wrote: You said u are using it like so: Check: /usr/local/nagios/libexec/check_http -I ip address -u http://url -w1 -c2 Maybe drop the IP address? I dunno, maybe cuz you have both IP and the url its causing problems. Maybe its replying on the IP, but not on the URL your providing. You prob only need one or the other if im not mistaken Cheers! On Mon, Nov 19, 2012 at 7:14 AM, Jaap van Arragon j.vanarra...@lukkien.com wrote: Hello, Does anyone know why it gives me a 200 back? If you need more info, I will gladly provide it ;-) Thank you. Regards, Jaap On 11/16/12 11:54 AM, Jaap van Arragon j.vanarra...@lukkien.com wrote: Hello, I¹m trying to use the check_http plugin to verify if one of our website is available. When I check our website it gives me a 200 OK status code back even when the website isn¹t available en the URL gives me a 503 status code through the browser. After some searching I came across the post below: http://permalink.gmane.org/gmane.network.nagios.plugins.devel/485 This states that there is a bug in check_http. The only thing is that the post is from 2003 so I expect that the necessary changes are already in the new release. Things I¹ve tried: - recompiled the latest version of the check_http plugin but the necessary changes seems to be integrated there already. - updated the plugins package to the latest version for our release Check: /usr/local/nagios/libexec/check_http -I ip address -u http://url -w1 -c2 Packages: ii nagios-images 0.5 ii nagios-nrpe-plugin 2.12-4ubuntu1.10.04.1 ii nagios-nrpe-server 2.12-4ubuntu1.10.04.1 ii nagios-plugins 1.4.14-1ubuntu1 ii nagios-plugins-basic 1.4.14-1ubuntu1 ii nagios-plugins-standard 1.4.14-1ubuntu1 ii nagios3 3.2.0-4ubuntu2.2 ii nagios3-cgi 3.2.0-4ubuntu2.2 ii nagios3-common 3.2.0-4ubuntu2.2 ii nagios3-core 3.2.0-4ubuntu2.2 ii nagiosgrapher 1.7.1-1 Does anyone know why it gives me a status 200 OK back? At the moment I can't rely on my Nagios checks.. Thank you in advance Regards Jaap -- Monitor your physical, virtual and cloud infrastructure from a single web console.
Re: [Nagios-users] circular parent/child chain
On 11/19/2012 07:57 PM, Lucy Pelzer wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi List, thanks for your fast replies, but I think you missed my point. I know that I could configure one parent and alert about spanning tree or do a lot of other stuff, but this would not help me at all in the following situations. Lets say that I have a lot of important infrastructure behind switch-4 and switch-5 and that the normal stp way is to route through switch-2 for switch-5 and for switch-4 to switch-3. Lets also suggest that at switch-2 there is not that much important infrastructure. If now switch-2 is failing at the same time a really important infrastructure behind switch-5 fails. I will only get informed that switch-2 failed, because switch-5 is a child of switch-2, but I will not be informed about the more important stuff at switch-5. Now I will spend a lot of time to exchange switch-2 before I even find out that there is something really important at switch-5 going on only because I could not give it a second parent (switch-4). Maybe the other problem would have been fixed in minutes if I would have known about it. I think it is a bad idea to have such parent/child chains. And please keep in mind that this is just a simple example and that a network can be much bigger than just 5 switches. The other point is that I will never see the real network infrastructure in the statusmap. As far as I can read the documentation I should also be able to build up my whole infrastructure like it is in the statusmap. Or for what is it at all? parent/child relations are primarily to block notifications for stuff that is only down because some earlier stage in the traffic shoveling is down. I would be really pleased if somebody could answer my question. - - Why is it in nagios not possible to be parent/child of a other host at the same time? - - Why is it a deadlock and where is the problem? Because if A is a parent of B and B is a parent of A we'd never run out of parents to check when trying to determine the root cause of the problem. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. -- 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] R: little question about disable notification and schedule downtime
Thank you. What do you mean with drop that command into nagios.cmd ? Marco Da: Onotsky, Steve x55328 [mailto:steve.onot...@broadridge.com] Inviato: lunedì 19 novembre 2012 17:28 A: Nagios Users List Oggetto: Re: [Nagios-users] little question about disable notification and schedule downtime Correct. The former will cause notifications to remain disabled until told otherwise; the latter only for as long as specified. You should read up on the difference between Fixed and Flexible scheduled downtime while youre at it. If you want service/host checks disabled, you need to select that option from the web GUI (or drop that command into nagios.cmd). Cheers Steve Onotsky Team Lead, Server Support Broadridge Investor Communication Solutions, Canada 5970 Chedworth Way Mississauga ON L5R 4G5 Tel: (905) 507-5328 Fax: (905) 507-5312 Inet: mailto:steve.onot...@broadridge.com steve.onot...@broadridge.com The purpose of the universe is to explore the realm of possibility. Our purpose is to witness it. - S. James Gates Jr. From: Marco Borsani [mailto:m.bors...@it.net] Sent: Monday, November 19, 2012 10:11 AM To: NAGIOS Subject: [Nagios-users] little question about disable notification and schedule downtime Hi all Reading for the first time the docs it seems that these 2 options do the same thing. Is it ? Is the only difference that the first one disable the notification forever, while the other only in a particular timeperiod ? Both do not stop the service checks. Marco Borsani Unix and Monitoring Sysadmin Technical Operations Dpt. tel: +39 010 4310115 fax: +39 02 30130311 cell: +39 329 5953944 ITnet Srl Società con socio unico Direzione e Coordinamento di Libero S.r.l. This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. -- 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] Check_http status 503 gives 200 OK
He's not using host headers in his definition. On Tue, Nov 20, 2012 at 12:05 AM, Joerg Linge pitchf...@ederdrom.de wrote: again check_http -H -u http://www.testsomething.com is a proxy request. NOT an valid HTTP request Joerg Am 20.11.2012 um 08:35 schrieb Jaap van Arragon j.vanarra...@lukkien.com : Herewith define service{ use generic-service_24x7 host_name www1 service_description check http url check_command check_http! -u http://www.testsomething.com -w 5 -c 8 } This gives me a HTTP OK: HTTP/1.1 200 OK - 414 bytes in 0.002 second response time Back. But in the browser the check gives me a 503 statuscode back. The Nagios check_http script isn't detecting this 503 error message. Regards, Jaap On 11/20/12 8:20 AM, Joerg Linge pitchf...@ederdrom.de wrote: Please provide a complete example! check_http works correct since years Joerg Am 19.11.2012 um 23:00 schrieb Jaap van Arragon j.vanarra...@lukkien.com: Hey Joerg, The 4xx and 3xx error are handeld correctly but not the 5xx error ;-) any ideas? Regards, Jaap From: Joerg Linge [mailto:pitchf...@ederdrom.de] To: Nagios Users List [mailto:nagios-users@lists.sourceforge.net] Sent: Mon, 19 Nov 2012 18:07:52 +0100 Subject: Re: [Nagios-users] Check_http status 503 gives 200 OK Your example /usr/local/nagios/libexec/check_http -I ip address -u http://url -w1 -c2 is a proxy request! -I = ip address to connect to -H = HTTP/1.1 Host Header -u = relative url to fetch without protocol infos like http:// some examples check nagios.org OMD[gearman]:~/lib/nagios/plugins$ ./check_http -H nagios.org HTTP OK: HTTP/1.1 200 OK - 54919 bytes in 1.703 second response time |time=1.703114s;;;0.00 size=54919B;;;0 OMD[gearman]:~/lib/nagios/plugins$ host nagios.org nagios.org has address 96.126.126.159 ok, nagios .org runns on 96.126.126.159 lets check a non existing page. we got 404! OMD[gearman]:~/lib/nagios/plugins$ ./check_http -I 96.126.126.159 -H nagios.org -u /404 HTTP WARNING: HTTP/1.1 404 Not Found - 17141 bytes in 0.536 second response time |time=0.536015s;;;0.00 size=17141B;;;0 lets ask nagios.org for icinga.org ;) and we will get a 302 OMD[gearman]:~/lib/nagios/plugins$ ./check_http -I 96.126.126.159 -H icinga.org -u / HTTP OK: HTTP/1.1 302 Found - 242 bytes in 1.837 second response time |time=1.837209s;;;0.00 size=242B;;;0 Joerg Am 19.11.2012 um 17:14 schrieb Jaap van Arragon j.vanarra...@lukkien.com: Thank you for your reply. I¹ve tried the check without the ip adress option but it makes no difference. Any other ideas? Thanks. On 11/19/12 2:29 PM, Ryan Edwards wyi...@gmail.com wrote: You said u are using it like so: Check: /usr/local/nagios/libexec/check_http -I ip address -u http://url -w1 -c2 Maybe drop the IP address? I dunno, maybe cuz you have both IP and the url its causing problems. Maybe its replying on the IP, but not on the URL your providing. You prob only need one or the other if im not mistaken Cheers! On Mon, Nov 19, 2012 at 7:14 AM, Jaap van Arragon j.vanarra...@lukkien.com wrote: Hello, Does anyone know why it gives me a 200 back? If you need more info, I will gladly provide it ;-) Thank you. Regards, Jaap On 11/16/12 11:54 AM, Jaap van Arragon j.vanarra...@lukkien.com wrote: Hello, I¹m trying to use the check_http plugin to verify if one of our website is available. When I check our website it gives me a 200 OK status code back even when the website isn¹t available en the URL gives me a 503 status code through the browser. After some searching I came across the post below: http://permalink.gmane.org/gmane.network.nagios.plugins.devel/485 This states that there is a bug in check_http. The only thing is that the post is from 2003 so I expect that the necessary changes are already in the new release. Things I¹ve tried: - recompiled the latest version of the check_http plugin but the necessary changes seems to be integrated there already. - updated the plugins package to the latest version for our release Check: /usr/local/nagios/libexec/check_http -I ip address -u http://url -w1 -c2 Packages: ii nagios-images 0.5 ii nagios-nrpe-plugin 2.12-4ubuntu1.10.04.1 ii nagios-nrpe-server 2.12-4ubuntu1.10.04.1 ii nagios-plugins 1.4.14-1ubuntu1 ii nagios-plugins-basic 1.4.14-1ubuntu1 ii nagios-plugins-standard 1.4.14-1ubuntu1 ii nagios3 3.2.0-4ubuntu2.2 ii nagios3-cgi 3.2.0-4ubuntu2.2 ii nagios3-common 3.2.0-4ubuntu2.2 ii nagios3-core 3.2.0-4ubuntu2.2 ii nagiosgrapher 1.7.1-1 Does anyone know why it gives me a status 200 OK back? At the moment
Re: [Nagios-users] how to use logged-in (Apache) user in plugins?
Hi, anyone knows a solution or any help? Please... Pepe -- Původní zpráva -- Od: kask...@email.cz Datum: 18. 11. 2012 Předmět: Re: [Nagios-users] how to use logged-in (Apache) user in plugins? Hello, no, I really want to have different output from one plugin depending on user logged in. So I need to show some advanced output to some most advanced admins. (secretary and naiosadmin was just an example) Pep. -- Původní zpráva -- Od: Giles Coochey gi...@coochey.net Datum: 17. 11. 2012 Předmět: Re: [Nagios-users] how to use logged-in (Apache) user in plugins? On 16/11/2012 23:37, kask...@email.cz wrote: Hello, I`m trying, googling but with no success. What I need is to adjust the output of a Nagios plugin depending on a user who is logged in the Nagios web interface. Like for example when nagiosadmin is logged in, the plugin will show more output/debug information than when just user secretary is logged in Nagios web. Is that somehow possible? You probably just want a different web front-end altogether for secretary... search around for different Nagios Front-Ends. -- Regards, Giles Coochey, CCNA, CCNAS NetSecSpec Ltd +44 (0) 7983 877438 http://www.coochey.net(http://www.coochey.net) http://www.netsecspec.co.uk(http://www.netsecspec.co.uk) gi...@coochey.net -- 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] R: little question about disable notification and schedule downtime
You can submit commands directly to the command file http://nagios.sourceforge.net/docs/3_0/extcommands.html Bye, Simone -- Simone Felici Divisione Tecnica: Progettazione e Sviluppo tel. +39 0461.030.111 fax. +39 0461 030.112 Via Fersina, 23 - 38123 Trento Il 20/11/2012 10:10, Marco Borsani ha scritto: Thank you. What do you mean with “drop that command into nagios.cmd” ? Marco *Da:*Onotsky, Steve x55328 [mailto:steve.onot...@broadridge.com] *Inviato:* lunedì 19 novembre 2012 17:28 *A:* Nagios Users List *Oggetto:* Re: [Nagios-users] little question about disable notification and schedule downtime Correct. The former will cause notifications to remain disabled until told otherwise; the latter only for as long as specified. You should read up on the difference between Fixed and Flexible scheduled downtime while you’re at it. If you want service/host checks disabled, you need to select that option from the web GUI (or drop that command into nagios.cmd). Cheers Steve Onotsky Team Lead, Server Support Broadridge Investor Communication Solutions, Canada 5970 Chedworth Way Mississauga ON L5R 4G5 Tel: (905) 507-5328 Fax: (905) 507-5312 Inet: steve.onot...@broadridge.com mailto:steve.onot...@broadridge.com /The purpose of the universe is to explore the realm of possibility. / /Our purpose is to witness it. - S. James Gates Jr./ *From:*Marco Borsani [mailto:m.bors...@it.net] *Sent:* Monday, November 19, 2012 10:11 AM *To:* NAGIOS *Subject:* [Nagios-users] little question about disable notification and schedule downtime Hi all Reading for the first time the docs it seems that these 2 options do the same thing. Is it ? Is the only difference that the first one disable the notification forever, while the other only in a particular timeperiod ? Both do not stop the service checks. Marco Borsani *Unix and Monitoring Sysadmin* *Technical Operations Dpt.* tel: +39 010 4310115 fax: +39 02 30130311 cell: +39 329 5953944 ITnet Srl Società con socio unico Direzione e Coordinamento di Libero S.r.l. This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. -- 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 -- 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] how to use logged-in (Apache) user in plugins?
Pepe, Nagios design does not allow for this. Plugins are executed without any user being logged in the web interface so a plugin has no idea which user is going to look at the results later on. What you can do instead is define multiple service checks, with secretary only having access to some of them. while the other more advanced ones are viewable to nagios admins. Maybe what you are really looking for is http://exchange.nagios.org/directory/Addons/Components/Nagios-Business-Process-Intelligence-(BPI)/details Which allows you to take a lot of service checks and group them together in higher level view. i.e. * Webservices are up * Databases are down Kind Regards, Pall Sigurdsson - Original Message - From: kask...@email.cz To: Nagios Users List nagios-users@lists.sourceforge.net Sent: Tuesday, November 20, 2012 9:47:31 AM Subject: Re: [Nagios-users] how to use logged-in (Apache) user in plugins? Hi, anyone knows a solution or any help? Please... Pepe -- Původní zpráva -- Od: kask...@email.cz Datum: 18. 11. 2012 Předmět: Re: [Nagios-users] how to use logged-in (Apache) user in plugins? Hello, no, I really want to have different output from one plugin depending on user logged in. So I need to show some advanced output to some most advanced admins. (secretary and naiosadmin was just an example) Pep. -- Původní zpráva -- Od: Giles Coochey gi...@coochey.net Datum: 17. 11. 2012 Předmět: Re: [Nagios-users] how to use logged-in (Apache) user in plugins? On 16/11/2012 23:37, kask...@email.cz wrote: Hello, I`m trying, googling but with no success. What I need is to adjust the output of a Nagios plugin depending on a user who is logged in the Nagios web interface. Like for example when nagiosadmin is logged in, the plugin will show more output/debug information than when just user secretary is logged in Nagios web. Is that somehow possible? You probably just want a different web front-end altogether for secretary... search around for different Nagios Front-Ends. -- Regards, Giles Coochey, CCNA, CCNAS NetSecSpec Ltd +44 (0) 7983 877438 http://www.coochey.net http://www.netsecspec.co.uk gi...@coochey.net = -- 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 -- 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] contact_groups and contacts
Hi - wonder if someone can explain this to me, or tell me if I'm defining my service incorrectly. I have a simple TCP check as such: define service{ use remote-service service_description DESKTOP SNA SERVICE TCP 4097 notification_interval 5 hostgroup_name desktopsnahisservers contact_groups dtns-admins24x7 contactstdwilkn check_command check_sts!4097 } define serviceescalation{ hostgroup_name desktopsnahisservers service_description DESKTOP SNA SERVICE TCP 4097 first_notification 2 last_notification 0 notification_interval 5 contactstdwillc } Is it ok to have both contact_groups and contacts defined in the same service? I ask because this check failed for a couple of hours over the weekend but looking in the nagios log I can see that on the first notification both dtns-admins24x7 and tdwilkn got an email. But then every 5mins ONLY dtns-admins24x7 got an email - tdwilkn received nothing more when he should have. I also have a serviceescalation defined and this worked as expected with tdwillc also getting an alert every 5mins after the 2nd failure. Any help would be appreciated. Thanks - Julian. Julian Grunnell | Unix Analyst, Infrastructure | TD Direct Investing T: +44 (0) 113 346 2824 | M: +44 (0) 7889 352527 --- Consider the environment: Please don't print this e-mail unless you really need to. Confidentiality: This email and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone; please reply to this email and highlight the error. Viruses: Although we have taken steps to ensure that this email and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure that they are actually virus-free. Brokerage services provided by TD Direct Investing (Europe) Limited (a subsidiary of The Toronto-Dominion Bank). Authorised and regulated by the Financial Services Authority (FSA registered number 141282), member of the London Stock Exchange and the PLUS market. Incorporated in England and Wales under registration number 2101863. Registered office: Exchange Court, Duncombe Street, Leeds LS1 4AX. Banking services provided by TD Bank N.V. authorised and regulated by De Nederlandsche Bank and the Financial Services Authority for UK Business (FSA registered number 216791). Incorporated in the Netherlands and registered as a branch in England and Wales under branch registration number BR006780. -- 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] how to use logged-in (Apache) user in plugins?
Thank you for your answer. I understand now, so my bad luck :) I have to do it maybe your way. Best regards, Pepe -- Původní zpráva -- Od: Páll Guðjón Sigurðsson pa...@ok.is Datum: 20. 11. 2012 Předmět: Re: [Nagios-users] how to use logged-in (Apache) user in plugins? Pepe, Nagios design does not allow for this. Plugins are executed without any user being logged in the web interface so a plugin has no idea which user is going to look at the results later on. What you can do instead is define multiple service checks, with secretary only having access to some of them. while the other more advanced ones are viewable to nagios admins. Maybe what you are really looking for is http://exchange.nagios.org/ directory/Addons/Components/Nagios-Business-Process-Intelligence-(BPI)/ details (http://exchange.nagios.org/directory/Addons/Components/Nagios-Business-Process-Intelligence-(BPI)/details) Which allows you to take a lot of service checks and group them together in higher level view. i.e. * Webservices are up * Databases are down Kind Regards, Pall Sigurdsson - Original Message - From: kask...@email.cz To: Nagios Users List nagios-users@lists.sourceforge.net Sent: Tuesday, November 20, 2012 9:47:31 AM Subject: Re: [Nagios-users] how to use logged-in (Apache) user in plugins? Hi, anyone knows a solution or any help? Please... Pepe -- Původní zpráva -- Od: kask...@email.cz Datum: 18. 11. 2012 Předmět: Re: [Nagios-users] how to use logged-in (Apache) user in plugins? Hello, no, I really want to have different output from one plugin depending on user logged in. So I need to show some advanced output to some most advanced admins. (secretary and naiosadmin was just an example) Pep. -- Původní zpráva -- Od: Giles Coochey gi...@coochey.net Datum: 17. 11. 2012 Předmět: Re: [Nagios-users] how to use logged-in (Apache) user in plugins? On 16/11/2012 23:37, kask...@email.cz wrote: Hello, I`m trying, googling but with no success. What I need is to adjust the output of a Nagios plugin depending on a user who is logged in the Nagios web interface. Like for example when nagiosadmin is logged in, the plugin will show more output/debug information than when just user secretary is logged in Nagios web. Is that somehow possible? You probably just want a different web front-end altogether for secretary... search around for different Nagios Front-Ends. -- Regards, Giles Coochey, CCNA, CCNAS NetSecSpec Ltd +44 (0) 7983 877438 http://www.coochey.net(http://www.coochey.net) http://www.netsecspec.co.uk(http://www.netsecspec.co.uk) gi...@coochey.net = -- 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(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 (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 -- 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(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 (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-- 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
Re: [Nagios-users] Nagios 3.99.95 contact_groups
Hi Crazy Network, Using bleeding edge code, I've tried copying your contacts.cfg (with my own email instead), put crazynetwork.it as the contact_group for a service, and I do receive notifications for it. So there must be something else at play here that affects you. What does your services/hosts look like? On 2012-11-20 15:01, Supporto Tecnico - Crazy Network wrote: Hi, i did update Nagios to this alpha release for test purpose using working configurations (on Nagios 3.4.1). The only big trouble im having is that i dont receive any notification. Here contacts.cfg define contact{ namecn-contacts service_notification_period 24x7 host_notification_period24x7 service_notification_optionsc,r host_notification_options d,u,r service_notification_commands notify-service-by-email host_notification_commands notify-host-by-email register0 } define contact{ contact_nameandrea.iannucci use cn-contacts alias Andrea Iannucci email supp...@crazynetwork.it contact_groups crazynetwork.it service_notification_commands notify-service-by-email,notify-service-by-sms host_notification_commands notify-host-by-email,notify-host-by-sms pager * } define contactgroup{ contactgroup_name crazynetwork.it alias CrazyNetwork.it Staff } I did try to use contactgroups and contact_groups in contact definition I did try to add members andrea.iannucci in contactgroup definition The error on debug_level=32 i can see is that for group crazynetwork.it he cant fine any member (in any case). Setting contacts instead of contact_groups to services definition make notification work. Here debug output: [1353420007.497082] [032.0] [pid=14604] ** Service Notification Attempt ** Host: 'Test.CrazyNetwork.it', Service: 'MySQL', Type: 0, Options: 0, Current State: 0, Last Notification: Thu Jan 1 01:00:00 1970 [1353420007.497154] [032.0] [pid=14604] Notification viability test passed. [1353420007.497181] [032.1] [pid=14604] Current notification number: 2 (incremented) [1353420007.497195] [032.2] [pid=14604] Creating list of contacts to be notified. [1353420007.497206] [032.1] [pid=14604] Service notification will NOT be escalated. [1353420007.497217] [032.1] [pid=14604] Adding normal contacts for service to notification list. [1353420007.497233] [032.2] [pid=14604] Adding members of contact group 'crazynetwork.it' for service to notification list. [1353420007.497245] [032.0] [pid=14604] No contacts were found for notification purposes. No notification was sent out. Hope someone can help me fix this cause on older version was working at actually it look like a bug to me. Thanks -- 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 3.99.95 contact_groups
Hi Robin sorry, dont know why my signature has been cutted out :) My name is Andrea. This is a sample services definition. define service{ namecn-ftp-service active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 1 check_freshness 0 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information1 is_volatile 0 servicegroups ftp-server service_description Server FTP check_command check_ftp icon_image ftp.png check_period24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval2 contact_groups crazynetwork.it notification_optionsc,r notification_interval 60 notification_period 24x7 register0 } Courios is, if here i replace contact_groups with contacts and put andrea.iannucci instead of crazynetwork.it it does work.. but just for the single person of course. Thanks Regards Il 20/11/2012 17:23, Robin Sonefors ha scritto: Hi Crazy Network, Using bleeding edge code, I've tried copying your contacts.cfg (with my own email instead), put crazynetwork.it as the contact_group for a service, and I do receive notifications for it. So there must be something else at play here that affects you. What does your services/hosts look like? On 2012-11-20 15:01, Supporto Tecnico - Crazy Network wrote: Hi, i did update Nagios to this alpha release for test purpose using working configurations (on Nagios 3.4.1). The only big trouble im having is that i dont receive any notification. Here contacts.cfg define contact{ namecn-contacts service_notification_period 24x7 host_notification_period24x7 service_notification_optionsc,r host_notification_options d,u,r service_notification_commands notify-service-by-email host_notification_commands notify-host-by-email register0 } define contact{ contact_nameandrea.iannucci use cn-contacts alias Andrea Iannucci email supp...@crazynetwork.it contact_groups crazynetwork.it service_notification_commands notify-service-by-email,notify-service-by-sms host_notification_commands notify-host-by-email,notify-host-by-sms pager * } define contactgroup{ contactgroup_name crazynetwork.it alias CrazyNetwork.it Staff } I did try to use contactgroups and contact_groups in contact definition I did try to add members andrea.iannucci in contactgroup definition The error on debug_level=32 i can see is that for group crazynetwork.it he cant fine any member (in any case). Setting contacts instead of contact_groups to services definition make notification work. Here debug output: [1353420007.497082] [032.0] [pid=14604] ** Service Notification Attempt ** Host: 'Test.CrazyNetwork.it', Service: 'MySQL', Type: 0, Options: 0, Current State: 0, Last Notification: Thu Jan 1 01:00:00 1970 [1353420007.497154] [032.0] [pid=14604] Notification viability test passed. [1353420007.497181] [032.1] [pid=14604] Current notification number: 2 (incremented) [1353420007.497195] [032.2] [pid=14604] Creating list of contacts to be notified. [1353420007.497206] [032.1] [pid=14604] Service notification will NOT be escalated. [1353420007.497217] [032.1] [pid=14604] Adding normal contacts for service to notification list. [1353420007.497233] [032.2] [pid=14604] Adding members of contact group 'crazynetwork.it' for service to notification list. [1353420007.497245] [032.0] [pid=14604] No contacts were found for notification purposes. No notification was sent out. Hope someone can help me fix this cause on older version was working at actually it look like a bug to me. Thanks -- Andrea Iannucci --- --- Crazy Network di Iannucci Andrea Viale G.B. Lulli, 24 00050 Cerveteri - RM (w) www.crazynetwork.it (e) andrea.iannu...@crazynetwork.it (t) +39 06 62279876 (f) +39 06 62298767 (m) +39 338 8552885
Re: [Nagios-users] R: little question about disable notification and schedule downtime
For example, to disable host checks on host Sample1, check the documentation at http://old.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=54, which tells you to run the following command on your Nagios server: # echo [$(date +%s)] DISABLE_HOST_CHECK;Sample1 /usr/local/nagios/var/rw/nagios.cmd The list of commands is located here: http://old.nagios.org/developerinfo/externalcommands/commandlist.php Alex Griffin --- Tech Team agrif...@nagios.com On 2012-11-20 03:10, Marco Borsani wrote: Thank you. What do you mean with “drop that command into nagios.cmd” ? Marco *Da:*Onotsky, Steve x55328 [mailto:steve.onot...@broadridge.com] *Inviato:* lunedì 19 novembre 2012 17:28 *A:* Nagios Users List *Oggetto:* Re: [Nagios-users] little question about disable notification and schedule downtime Correct. The former will cause notifications to remain disabled until told otherwise; the latter only for as long as specified. You should read up on the difference between Fixed and Flexible scheduled downtime while you’re at it. If you want service/host checks disabled, you need to select that option from the web GUI (or drop that command into nagios.cmd). Cheers Steve Onotsky Team Lead, Server Support Broadridge Investor Communication Solutions, Canada 5970 Chedworth Way Mississauga ON L5R 4G5 Tel: (905) 507-5328 Fax: (905) 507-5312 Inet: steve.onot...@broadridge.com mailto:steve.onot...@broadridge.com /The purpose of the universe is to explore the realm of possibility. / /Our purpose is to witness it. - S. James Gates Jr./ *From:*Marco Borsani [mailto:m.bors...@it.net] *Sent:* Monday, November 19, 2012 10:11 AM *To:* NAGIOS *Subject:* [Nagios-users] little question about disable notification and schedule downtime Hi all Reading for the first time the docs it seems that these 2 options do the same thing. Is it ? Is the only difference that the first one disable the notification forever, while the other only in a particular timeperiod ? Both do not stop the service checks. Marco Borsani *Unix and Monitoring Sysadmin* *Technical Operations Dpt.* tel: +39 010 4310115 fax: +39 02 30130311 cell: +39 329 5953944 ITnet Srl Società con socio unico Direzione e Coordinamento di Libero S.r.l. This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. -- 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 -- 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