From m.borsani at it.net Wed Aug 1 09:19:13 2012 From: m.borsani at it.net (Marco Borsani) Date: Wed, 1 Aug 2012 09:19:13 +0200 Subject: R: check_memory does not work properly In-Reply-To: References: <00a401cd6f23$a74926a0$f5db73e0$@it.net> Message-ID: <002001cd6fb5$f9a3d5c0$eceb8140$@it.net> Commands.cfg # 'check_local_memory' command definition define command{ command_name check_local_memory command_line $USER1$/check_memory -w $ARG1$ -c $ARG2$ } Services.cfg define service{ use active-service host_name service_description check_local_memory check_command check_local_memory!10%!5% max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 check_period 24x7 notification_interval 120 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 contact_groups CG_admin } >From line command: $> ./check_memory -w 10% -c 5% OK - free memory is 27% which is within expected threshold| mem=27;10;5;0;100 Regards Da: Morris, Patrick [mailto:patrick.morris at hp.com] Inviato: marted? 31 luglio 2012 23:24 A: nagios-users at lists.sourceforge.net Oggetto: Re: [Nagios-users] check_memory does not work properly Posting your check configuration is really helpful in cases like this. It?s almost impossible to give a good answer without knowing how you?ve set the check up. From: Marco Borsani [mailto:m.borsani at it.net] Sent: Tuesday, July 31, 2012 6:52 AM To: NAGIOS Subject: [Nagios-users] check_memory does not work properly Hi all I am using a simple plug-in to check the nagios server memory. When I run it like user Nagios, it works perfectly. I see this output: OK - free memory is 40% which is within expected threshold| mem=40;10;5;0;100 When I run it with Nagios program I receive this notification: .. Command: check_local_memory State: WARNING Message: (null) . Any idea ? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mail at catsnest.co.uk Wed Aug 1 10:49:07 2012 From: mail at catsnest.co.uk (RichTea) Date: Wed, 1 Aug 2012 09:49:07 +0100 Subject: R: check_memory does not work properly In-Reply-To: <002001cd6fb5$f9a3d5c0$eceb8140$@it.net> References: <00a401cd6f23$a74926a0$f5db73e0$@it.net> <002001cd6fb5$f9a3d5c0$eceb8140$@it.net> Message-ID: On Wed, Aug 1, 2012 at 8:19 AM, Marco Borsani wrote: > Commands.cfg**** > > ** ** > > # 'check_local_memory' command definition**** > > define command{**** > > command_name check_local_memory**** > > command_line $USER1$/check_memory -w $ARG1$ -c $ARG2$**** > > }**** > > ** ** > > Services.cfg**** > > ** ** > > define service{**** > > use > active-service **** > > host_name **** > > service_description check_local_memory**** > > check_command check_local_memory!10%!5% > I do not know for sure but I would suggest those '%'s are causing issues, try escaping them with a back slash. They might even need dubble escaping eg '\\\%' as they are being passed through levels of commands. People tend to try and not pass-through special chars like that so it might be simpler to just edit your check script to just use plain values instead (./check_script -w 10 -c 5). HTH Ritchie -- <--Time flies like an arrow; fruit flies like a banana. --> > **** > > max_check_attempts 3**** > > normal_check_interval 5**** > > retry_check_interval 1**** > > check_period 24x7**** > > notification_interval 120**** > > notification_period 24x7**** > > notification_options w,u,c,r**** > > notifications_enabled 1**** > > contact_groups CG_admin**** > > }**** > > ** ** > > ** ** > > From line command:**** > > $> ./check_memory -w 10% -c 5%**** > > OK - free memory is 27% which is within expected threshold| > mem=27;10;5;0;100**** > > ** ** > > Regards**** > > ** ** > > ** ** > > *Da:* Morris, Patrick [mailto:patrick.morris at hp.com] > *Inviato:* marted? 31 luglio 2012 23:24 > *A:* nagios-users at lists.sourceforge.net > *Oggetto:* Re: [Nagios-users] check_memory does not work properly**** > > ** ** > > Posting your check configuration is really helpful in cases like this. > It?s almost impossible to give a good answer without knowing how you?ve set > the check up.**** > > ** ** > > *From:* Marco Borsani [mailto:m.borsani at it.net] > *Sent:* Tuesday, July 31, 2012 6:52 AM > *To:* NAGIOS > *Subject:* [Nagios-users] check_memory does not work properly**** > > ** ** > > Hi all**** > > ** ** > > ** ** > > I am using a simple plug-in to check the nagios server memory.**** > > ** ** > > When I run it like user Nagios, it works perfectly. I see this output:**** > > OK - free memory is 40% which is within expected threshold| > mem=40;10;5;0;100**** > > ** ** > > When I run it with Nagios program I receive this notification:**** > > ** ** > > ?..**** > > Command: check_local_memory**** > > State: WARNING**** > > Message: (null)**** > > ?.**** > > ** ** > > ** ** > > Any idea ?**** > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From m.borsani at it.net Wed Aug 1 11:05:54 2012 From: m.borsani at it.net (Marco Borsani) Date: Wed, 1 Aug 2012 11:05:54 +0200 Subject: R: R: check_memory does not work properly In-Reply-To: References: <00a401cd6f23$a74926a0$f5db73e0$@it.net> <002001cd6fb5$f9a3d5c0$eceb8140$@it.net> Message-ID: <004701cd6fc4$e143ea10$a3cbbe30$@it.net> I use in many checks the ?%? symbol without problem Regards Da: RichTea [mailto:mail at catsnest.co.uk] Inviato: mercoled? 1 agosto 2012 10:49 A: Nagios Users List Oggetto: Re: [Nagios-users] R: check_memory does not work properly On Wed, Aug 1, 2012 at 8:19 AM, Marco Borsani wrote: Commands.cfg # 'check_local_memory' command definition define command{ command_name check_local_memory command_line $USER1$/check_memory -w $ARG1$ -c $ARG2$ } Services.cfg define service{ use active-service host_name service_description check_local_memory check_command check_local_memory!10%!5% I do not know for sure but I would suggest those '%'s are causing issues, try escaping them with a back slash. They might even need dubble escaping eg '\\\%' as they are being passed through levels of commands. People tend to try and not pass-through special chars like that so it might be simpler to just edit your check script to just use plain values instead (./check_script -w 10 -c 5). HTH Ritchie -- <--Time flies like an arrow; fruit flies like a banana. --> max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 check_period 24x7 notification_interval 120 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 contact_groups CG_admin } >From line command: $> ./check_memory -w 10% -c 5% OK - free memory is 27% which is within expected threshold| mem=27;10;5;0;100 Regards Da: Morris, Patrick [mailto:patrick.morris at hp.com] Inviato: marted? 31 luglio 2012 23:24 A: nagios-users at lists.sourceforge.net Oggetto: Re: [Nagios-users] check_memory does not work properly Posting your check configuration is really helpful in cases like this. It?s almost impossible to give a good answer without knowing how you?ve set the check up. From: Marco Borsani [mailto:m.borsani at it.net] Sent: Tuesday, July 31, 2012 6:52 AM To: NAGIOS Subject: [Nagios-users] check_memory does not work properly Hi all I am using a simple plug-in to check the nagios server memory. When I run it like user Nagios, it works perfectly. I see this output: OK - free memory is 40% which is within expected threshold| mem=40;10;5;0;100 When I run it with Nagios program I receive this notification: ?.. Command: check_local_memory State: WARNING Message: (null) ?. Any idea ? ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From t-aravinth at juspay.in Wed Aug 1 13:43:26 2012 From: t-aravinth at juspay.in (Aravinth Anto Intern) Date: Wed, 1 Aug 2012 17:13:26 +0530 Subject: How Do I Find the no of connections in Tomcat? Message-ID: Hi all, I'm very new to Nagios. I have certain doubts. I need to find a way to find the number of tomcat connections. More precisely, I need to know: If Number of connections (< 500 for 1 min) or else alert. Is that possible to do so? Thanks in advance. Regard's, Anto. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mark.elsen at gmail.com Wed Aug 1 15:06:23 2012 From: mark.elsen at gmail.com (Mark Elsen) Date: Wed, 1 Aug 2012 15:06:23 +0200 Subject: How Do I Find the no of connections in Tomcat? In-Reply-To: References: Message-ID: > Hi all, > > I'm very new to Nagios. I have certain doubts. > > > I need to find a way to find the number of tomcat connections. More > precisely, I need to know: > > If Number of connections (< 500 for 1 min) or else alert. > > > Is that possible to do so ? There are a number of plugins out there to monitor tomcat ; google on check_tomcat check_tomcatapplication check_tomcatsessions M. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From work at paul.dubuc.org Wed Aug 1 15:41:23 2012 From: work at paul.dubuc.org (Paul Dubuc) Date: Wed, 01 Aug 2012 09:41:23 -0400 Subject: How Do I Find the no of connections in Tomcat? In-Reply-To: References: Message-ID: <50193203.7060800@paul.dubuc.org> Mark Elsen wrote: > > ? > > Hi all, > > I'm very new to Nagios. I have certain doubts. > > > I need to find a way to find the number of tomcat connections. More > precisely, I need to know: > > If Number of connections (< 500 for 1 min) or else alert. > > > Is that possible to do so ? > > > ? There are a number of plugins out there to monitor tomcat ; google on > > ? ? check_tomcat > ? ? check_tomcatapplication > ? ? check_tomcatsessions > Also jmx4perl (http://labs.consol.de/lang/de/jmx4perl/) supports Tomcat and comes has a configuration file with session related checks; one that does measure the number of connections per minute (tc_session_inc in tomcat.cfg). I haven't used it since we don't use Tomcat but jmx4perl is a great package to have for monitoring using JMX. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From t-aravinth at juspay.in Wed Aug 1 15:37:13 2012 From: t-aravinth at juspay.in (Aravinth Anto Intern) Date: Wed, 1 Aug 2012 19:07:13 +0530 Subject: Creating a criteria: Message-ID: Hi all, I'm new to nagios. And trying to figure out how do I do this : Response time > 2s for 10 continuous requests in a 5 minutes. If this is the case then I need to create a alert. I defined a template for this : define host{ host_name test ;other stufs ;check command so that response time is less than 2s check_interval 5 retry_interval 1 max_check_attempts 10 check_period 24x7 } For my criteria : Response time > 2s for 10 continuous requests in a 5 minutes. Is that correct? Thanks in advance. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From agriffin at nagios.com Wed Aug 1 17:47:06 2012 From: agriffin at nagios.com (Alex Griffin) Date: Wed, 01 Aug 2012 10:47:06 -0500 Subject: Creating a criteria: In-Reply-To: References: Message-ID: <50194F7A.4020104@nagios.com> No, this will only check once every 5 minutes. The max_check_attempts directive is for retrying after a failed check. You need to find or write a plugin that does all 10 requests itself and then set it up as a *passive* check in Nagios. I believe it must be passive, otherwise Nagios will kill it for running too long. Alex Griffin --- Tech Team agriffin at nagios.com Aravinth Anto Intern wrote: > Hi all, I'm new to nagios. And trying to figure out how do I do this : > > Response time> 2s for 10 continuous requests in a 5 minutes. > > If this is the case then I need to create a alert. > > I defined a template for this : > > > define host{ > > host_name test > > ;other stufs > > ;check command so that response time is less than 2s > > check_interval 5 > > retry_interval 1 > > max_check_attempts 10 > > check_period 24x7 > > } > > For my criteria : > > Response time> 2s for 10 continuous requests in a 5 minutes. > > Is that correct? > > Thanks in advance. > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From work at paul.dubuc.org Wed Aug 1 18:54:57 2012 From: work at paul.dubuc.org (Paul Dubuc) Date: Wed, 01 Aug 2012 12:54:57 -0400 Subject: Creating a criteria: In-Reply-To: <50194F7A.4020104@nagios.com> References: <50194F7A.4020104@nagios.com> Message-ID: <50195F61.7050406@paul.dubuc.org> Alex Griffin wrote: > Aravinth Anto Intern wrote: >> Hi all, I'm new to nagios. And trying to figure out how do I do this : >> >> Response time> 2s for 10 continuous requests in a 5 minutes. >> >> If this is the case then I need to create a alert. >> >> I defined a template for this : >> >> >> define host{ >> >> host_name test >> >> ;other stufs >> >> ;check command so that response time is less than 2s >> >> check_interval 5 >> >> retry_interval 1 >> >> max_check_attempts 10 >> >> check_period 24x7 >> >> } >> >> For my criteria : >> >> Response time> 2s for 10 continuous requests in a 5 minutes. >> >> Is that correct? >> >> Thanks in advance. > > No, this will only check once every 5 minutes. The max_check_attempts > directive is for retrying after a failed check. You need to find or > write a plugin that does all 10 requests itself and then set it up as a > *passive* check in Nagios. I believe it must be passive, otherwise > Nagios will kill it for running too long. > > Alex Griffin > --- Another way would be to set the retry interval to 0.5. If the whole purpose of the check is to fail when the response time is greater than 2 seconds, then the check would be run every 30 seconds as long as it keeps failing and would enter a hard state, generating a notification, if it kept failing for 5 minutes. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From luisforchesatto at gmail.com Wed Aug 1 19:53:22 2012 From: luisforchesatto at gmail.com (Luis H. Forchesatto) Date: Wed, 1 Aug 2012 14:53:22 -0300 Subject: Trouble with check_radius. Message-ID: Hi. Figuring out how to configure the check_radius plugin to check a remote server that run radius I'v look at the configuration file it request and mine config file are default, it was never used but is needed to make check_radius work. Which parameter should I look to adjust it as needed to make de plugin work? -- Att.* *** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From cbeattie at geninfo.com Wed Aug 1 23:04:23 2012 From: cbeattie at geninfo.com (Chris Beattie) Date: Wed, 1 Aug 2012 17:04:23 -0400 Subject: Derive service settings from hosts definition In-Reply-To: References: <20B84D30F1DB44F68BA66EB9249A798F@DRVStar> <5017F3A4.80107@geninfo.com> Message-ID: <501999D7.1060707@geninfo.com> On 7/31/2012 11:24 AM, David Fulton wrote: > Also keep in mind you can use user defined host based macros that can > be defined in the templates to make parameters to the service checks > inherited from the host as well. I've been using Nagios since it was Netsaint and never figured out what I could use custom variables for, until your post. I just cut 40 lines out of my services.cfg file without even trying hard. Thanks! -- -Chris Nothing in this message is intended to make or accept an offer or to form a contract, except that an attachment that is an image of a contract bearing the signature of an officer of our company may be or become a contract. This message (including any attachments) is intended only for the use of the individual or entity to whom it is addressed. It may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, we hereby notify you that any use, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this message in error, please notify us immediately by telephone and delete this message immediately. Thank you. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From vstaroselskiy at dataraker.com Wed Aug 1 23:13:53 2012 From: vstaroselskiy at dataraker.com (Vladislav Staroselskiy) Date: Wed, 1 Aug 2012 17:13:53 -0400 Subject: Derive service settings from hosts definition In-Reply-To: References: <20B84D30F1DB44F68BA66EB9249A798F@DRVStar><5017F3A4.80107@geninfo.com> Message-ID: This helped a lot - thank you both for explanations! I saw this link earlier, but somehow missed "implied inheritance" part of it. Vlad. -----Original Message----- From: David Fulton Sent: Tuesday, July 31, 2012 11:24 AM To: Nagios Users List Subject: Re: [Nagios-users] Derive service settings from hosts definition On Tue, Jul 31, 2012 at 11:03 AM, Chris Beattie wrote: > On 7/30/2012 2:31 PM, Vladislav Staroselskiy wrote: >> Is there any way to derive certain service options from the host definition? Is there any default inheritance behavior for it? > ... >> I really wish, service notification/contact options could be derived from hosts definitions to avoid this mess. If anyone has a >> suggestion on how to better organize it, I would also appreciate your feedback. > > Nagios does almost exactly that, except for the enabling or disabling of > notifications. > > Services will inherit their contact_groups, notification_interval, and > notification_period from their associated host if those three directives > are not set in the service's definition. > > Search for "implied inheritance" down the page here: > http://nagios.sourceforge.net/docs/3_0/objectinheritance.html > > Also, you can use a + sign to signal additive inheritance, which comes > in handy if you want to modify an implied inheritance without replacing > it. It's explained directly above implied inheritance on that page. > > -- > -Chris > > Nothing in this message is intended to make or accept an offer or to form a contract, except that an attachment that is an image > of a contract bearing the signature of an officer of our company may be or become a contract. This message (including any > attachments) is intended only for the use of the individual or entity to whom it is addressed. It may contain information that is > non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney > work product. If you are not the intended recipient, we hereby notify you that any use, dissemination, distribution, or copying of > this message is strictly prohibited. If you have received this message in error, please notify us immediately by telephone and > delete this message immediately. > > Thank you. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 Also keep in mind you can use user defined host based macros that can be defined in the templates to make parameters to the service checks inherited from the host as well. I used this feature to create classes of hosts while at the same time giving me the option to tweak the thresholds on a class-by-class or host-by-host basis. Very flexible. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From t-aravinth at juspay.in Thu Aug 2 04:56:46 2012 From: t-aravinth at juspay.in (Aravinth Anto Intern) Date: Thu, 2 Aug 2012 08:26:46 +0530 Subject: Creating a criteria: In-Reply-To: <50195F61.7050406@paul.dubuc.org> References: <50194F7A.4020104@nagios.com> <50195F61.7050406@paul.dubuc.org> Message-ID: Thanks for replying. So doing this : define host{ host_name test ;other stufs ;check command so that response time is less than 2s check_interval 0.5 retry_interval 1 max_check_attempts 10 check_period 24x7 } Will do the job? On Wed, Aug 1, 2012 at 10:24 PM, Paul Dubuc wrote: > Alex Griffin wrote: > >> Aravinth Anto Intern wrote: >>> Hi all, I'm new to nagios. And trying to figure out how do I do this : >>> >>> Response time> 2s for 10 continuous requests in a 5 minutes. >>> >>> If this is the case then I need to create a alert. >>> >>> I defined a template for this : >>> >>> >>> define host{ >>> >>> host_name test >>> >>> ;other stufs >>> >>> ;check command so that response time is less than 2s >>> >>> check_interval 5 >>> >>> retry_interval 1 >>> >>> max_check_attempts 10 >>> >>> check_period 24x7 >>> >>> } >>> >>> For my criteria : >>> >>> Response time> 2s for 10 continuous requests in a 5 minutes. >>> >>> Is that correct? >>> >>> Thanks in advance. > > >> No, this will only check once every 5 minutes. The max_check_attempts >> directive is for retrying after a failed check. You need to find or >> write a plugin that does all 10 requests itself and then set it up as a >> *passive* check in Nagios. I believe it must be passive, otherwise >> Nagios will kill it for running too long. >> >> Alex Griffin >> --- > > Another way would be to set the retry interval to 0.5. If the whole purpose > of the check is to fail when the response time is greater than 2 seconds, then > the check would be run every 30 seconds as long as it keeps failing and would > enter a hard state, generating a notification, if it kept failing for 5 minutes. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From t-aravinth at juspay.in Thu Aug 2 05:01:32 2012 From: t-aravinth at juspay.in (Aravinth Anto Intern) Date: Thu, 2 Aug 2012 08:31:32 +0530 Subject: Installing Plugin In Nagios. Message-ID: Hi all, I'm very new to nagios. I need to install several other plugins in nagios system. I'm using Ubuntu 12.04 and I installed the nagios system using : sudo apt-get install -y nagios3 This command. Its up and running. Lets say for example I need to install check_tomcat plugin.. How I can do that? Thanks in advance. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From t-aravinth at juspay.in Thu Aug 2 07:19:09 2012 From: t-aravinth at juspay.in (Aravinth Anto Intern) Date: Thu, 2 Aug 2012 10:49:09 +0530 Subject: How Do I Generally Specify timing constraint in Nagios? Message-ID: Hi all, I'm new to nagios. I need to know how I can specify the timing constraints. For example if I want to do something : if something is down for 10 min then alert me. In this case where do I specify the timing constraints? Thanks in advance. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hdperfors at che.nl Thu Aug 2 08:14:04 2012 From: hdperfors at che.nl (Perfors, Henny) Date: Thu, 2 Aug 2012 08:14:04 +0200 Subject: Installing Plugin In Nagios. In-Reply-To: References: Message-ID: <944EFA13E9A01F47823F16D30BD9DAAB0347D05B07@CHECEXCL02.che.local> http://nagios.sourceforge.net/docs/nagios-3.pdf -----Oorspronkelijk bericht----- Van: Aravinth Anto Intern [mailto:t-aravinth at juspay.in] Verzonden: donderdag 2 augustus 2012 5:02 Aan: Nagios Users List Onderwerp: [Nagios-users] Installing Plugin In Nagios. Hi all, I'm very new to nagios. I need to install several other plugins in nagios system. I'm using Ubuntu 12.04 and I installed the nagios system using : sudo apt-get install -y nagios3 This command. Its up and running. Lets say for example I need to install check_tomcat plugin.. How I can do that? Thanks in advance. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mark.elsen at gmail.com Thu Aug 2 08:52:30 2012 From: mark.elsen at gmail.com (Mark Elsen) Date: Thu, 2 Aug 2012 08:52:30 +0200 Subject: How Do I Generally Specify timing constraint in Nagios? In-Reply-To: References: Message-ID: > Hi all, > > > I'm new to nagios. I need to know how I can specify the timing > constraints. For example if I want to do something : > > > if something is down for 10 min then alert me. > > In this case where do I specify the timing constraints? > > There are numerous timing vars, determining these result(s) and or behavior,it would be a good idea to study examples in the doc(s) and or look at the template files. M. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From t-aravinth at juspay.in Thu Aug 2 08:57:14 2012 From: t-aravinth at juspay.in (Aravinth Anto Intern) Date: Thu, 2 Aug 2012 12:27:14 +0530 Subject: Installing Plugin In Nagios. In-Reply-To: <944EFA13E9A01F47823F16D30BD9DAAB0347D05B07@CHECEXCL02.che.local> References: <944EFA13E9A01F47823F16D30BD9DAAB0347D05B07@CHECEXCL02.che.local> Message-ID: Lets say I need to download this plugin : http://exchange.nagios.org/directory/Plugins/Java-Applications-and-Servers/Apache-Tomcat/check_tomcat-2Epl/details I obtained the file check_tomcat.pl.. But how do I install it? Sorry, I'm very new to Nagios.. Kindly help me out. On Thu, Aug 2, 2012 at 11:44 AM, Perfors, Henny wrote: > http://nagios.sourceforge.net/docs/nagios-3.pdf > > > -----Oorspronkelijk bericht----- > Van: Aravinth Anto Intern [mailto:t-aravinth at juspay.in] > Verzonden: donderdag 2 augustus 2012 5:02 > Aan: Nagios Users List > Onderwerp: [Nagios-users] Installing Plugin In Nagios. > > Hi all, > > I'm very new to nagios. I need to install several other plugins in nagios system. > > I'm using Ubuntu 12.04 and I installed the nagios system using : > > sudo apt-get install -y nagios3 > > This command. Its up and running. > > Lets say for example I need to install check_tomcat plugin.. How I can do that? > > > Thanks in advance. > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From t-aravinth at juspay.in Thu Aug 2 09:06:23 2012 From: t-aravinth at juspay.in (Aravinth Anto Intern) Date: Thu, 2 Aug 2012 12:36:23 +0530 Subject: How Do I Generally Specify timing constraint in Nagios? In-Reply-To: References: Message-ID: Thanks for replying. Is it possible for me to specify this via any Object configuration file? Is so provide me an example. I can't find this detail in docs. On Thu, Aug 2, 2012 at 12:22 PM, Mark Elsen wrote: > > > >> >> Hi all, >> >> >> I'm new to nagios. I need to know how I can specify the timing >> constraints. For example if I want to do something : >> >> >> if something is down for 10 min then alert me. >> >> In this case where do I specify the timing constraints? >> >> > > > There are numerous timing vars, determining these result(s) and or > behavior,it would be a good idea > to study examples in the doc(s) and or look at the template files. > > M. > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From bmomartins at gmail.com Thu Aug 2 12:25:27 2012 From: bmomartins at gmail.com (Bruno Martins) Date: Thu, 2 Aug 2012 11:25:27 +0100 Subject: Nagios Variables Message-ID: Hello list, How can I access Nagios variables like $NOTIFICATIONTYPE$, $SHORTDATETIME$, etc from a text file passed in a command? I have one command which is: /usr/local/bin/sendEmail -o message-file=/etc/nagios/message.txt ... bla bla bla And inside message.txt I have those variables. However when I am notified, I am not getting variable's values, instead, it gives me the plain string "$NOTIFICATIONTYPE$", etc. Googling didn't help too much. Thanks for all help on this! Best regards, Bruno -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From nagios at flatto.net Thu Aug 2 12:32:54 2012 From: nagios at flatto.net (Assaf Flatto) Date: Thu, 02 Aug 2012 11:32:54 +0100 Subject: Nagios Variables In-Reply-To: References: Message-ID: <501A5756.3010101@flatto.net> The marco's are internal to nagios and will not be read from an external text file . there is a way to make nagios macros available to external commands ( look for "macros" in the nagios.cfg file) But what you are trying to do with the message.txt file will fail to work as the SendEmail script most likely do not have access to the nagios internal macros and there for will not expand them . On 02/08/12 11:25, Bruno Martins wrote: > Hello list, > > How can I access Nagios variables like $NOTIFICATIONTYPE$, > $SHORTDATETIME$, etc from a text file passed in a command? > > I have one command which is: > /usr/local/bin/sendEmail -o message-file=/etc/nagios/message.txt ... > bla bla bla > > And inside message.txt I have those variables. However when I am > notified, I am not getting variable's values, instead, it gives me the > plain string "$NOTIFICATIONTYPE$", etc. > > Googling didn't help too much. > > Thanks for all help on this! > > Best regards, > > Bruno > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From linuxoid at gmail.com Thu Aug 2 12:39:54 2012 From: linuxoid at gmail.com (Ruslan Valiyev) Date: Thu, 2 Aug 2012 12:39:54 +0200 Subject: Nagios Variables In-Reply-To: <501A5756.3010101@flatto.net> References: <501A5756.3010101@flatto.net> Message-ID: You need to append "NAGIOS_" eg. NAGIOS_NOTIFICATIONTYPE. And also make sure you do "enable_environment_macros=1" in nagios.cfg Ruslan On Thu, Aug 2, 2012 at 12:32 PM, Assaf Flatto wrote: > ** > The marco's are internal to nagios and will not be read from an external > text file . > > there is a way to make nagios macros available to external commands ( look > for "macros" in the nagios.cfg file) > > But what you are trying to do with the message.txt file will fail to work > as the SendEmail script most likely do not have access to the nagios > internal macros and there for will not expand them . > > > > On 02/08/12 11:25, Bruno Martins wrote: > > Hello list, > > How can I access Nagios variables like $NOTIFICATIONTYPE$, $SHORTDATETIME$, > etc from a text file passed in a command? > > I have one command which is: > /usr/local/bin/sendEmail -o message-file=/etc/nagios/message.txt ... bla > bla bla > > And inside message.txt I have those variables. However when I am notified, > I am not getting variable's values, instead, it gives me the plain string "$NOTIFICATIONTYPE$", > etc. > > Googling didn't help too much. > > Thanks for all help on this! > > Best regards, > > Bruno > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > Nagios-users mailing listNagios-users at lists.sourceforge.nethttps://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 > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From bmomartins at gmail.com Thu Aug 2 12:49:59 2012 From: bmomartins at gmail.com (Bruno Martins) Date: Thu, 2 Aug 2012 11:49:59 +0100 Subject: Nagios Variables In-Reply-To: <501A5756.3010101@flatto.net> References: <501A5756.3010101@flatto.net> Message-ID: Hello there, Thanks for fast reply. I have that setting in my nagios.cfg file: enable_environment_macros=1 Do you know how can I make this possible, if it is really possible... Best regards, Bruno On Thu, Aug 2, 2012 at 11:32 AM, Assaf Flatto wrote: > ** > The marco's are internal to nagios and will not be read from an external > text file . > > there is a way to make nagios macros available to external commands ( look > for "macros" in the nagios.cfg file) > > But what you are trying to do with the message.txt file will fail to work > as the SendEmail script most likely do not have access to the nagios > internal macros and there for will not expand them . > > > > On 02/08/12 11:25, Bruno Martins wrote: > > Hello list, > > How can I access Nagios variables like $NOTIFICATIONTYPE$, $SHORTDATETIME$, > etc from a text file passed in a command? > > I have one command which is: > /usr/local/bin/sendEmail -o message-file=/etc/nagios/message.txt ... bla > bla bla > > And inside message.txt I have those variables. However when I am notified, > I am not getting variable's values, instead, it gives me the plain string "$NOTIFICATIONTYPE$", > etc. > > Googling didn't help too much. > > Thanks for all help on this! > > Best regards, > > Bruno > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > Nagios-users mailing listNagios-users at lists.sourceforge.nethttps://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 > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From linuxoid at gmail.com Thu Aug 2 13:18:11 2012 From: linuxoid at gmail.com (Ruslan Valiyev) Date: Thu, 2 Aug 2012 13:18:11 +0200 Subject: Nagios Variables In-Reply-To: References: <501A5756.3010101@flatto.net> Message-ID: As I said, it's possible to extract the data from the variables you mentioned. *[root at bravura ~]# cat /usr/local/nagios/libexec/just_test* #!/bin/bash echo $NAGIOS_HOSTNAME *Define a command:* define command { command_name just_test_cmd command_line $USER1$/just_test > /tmp/test.txt } *Define a service:* define service { name just_test_srv use local-service host_name bravura.svc.unicc.org check_command just_test_cmd service_description Just test } After check is run, you will get your data. *[root at bravura ~]# cat /tmp/test.txt* bravura.svc.unicc.org Hope it helps. Ruslan On Thu, Aug 2, 2012 at 12:49 PM, Bruno Martins wrote: > Hello there, > > Thanks for fast reply. > > I have that setting in my nagios.cfg file: > enable_environment_macros=1 > > Do you know how can I make this possible, if it is really possible... > > Best regards, > > Bruno > > > On Thu, Aug 2, 2012 at 11:32 AM, Assaf Flatto wrote: > >> ** >> The marco's are internal to nagios and will not be read from an external >> text file . >> >> there is a way to make nagios macros available to external commands ( >> look for "macros" in the nagios.cfg file) >> >> But what you are trying to do with the message.txt file will fail to work >> as the SendEmail script most likely do not have access to the nagios >> internal macros and there for will not expand them . >> >> >> >> On 02/08/12 11:25, Bruno Martins wrote: >> >> Hello list, >> >> How can I access Nagios variables like $NOTIFICATIONTYPE$, $SHORTDATETIME$, >> etc from a text file passed in a command? >> >> I have one command which is: >> /usr/local/bin/sendEmail -o message-file=/etc/nagios/message.txt ... bla >> bla bla >> >> And inside message.txt I have those variables. However when I am >> notified, I am not getting variable's values, instead, it gives me the >> plain string "$NOTIFICATIONTYPE$", etc. >> >> Googling didn't help too much. >> >> Thanks for all help on this! >> >> Best regards, >> >> Bruno >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> >> >> _______________________________________________ >> Nagios-users mailing listNagios-users at lists.sourceforge.nethttps://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 >> >> >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at 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 >> > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From t-aravinth at juspay.in Thu Aug 2 15:37:57 2012 From: t-aravinth at juspay.in (Aravinth Anto Intern) Date: Thu, 2 Aug 2012 19:07:57 +0530 Subject: Problem in Installing the graph plugin. Message-ID: Hi all, I'm trying to install Nagios Plugin : http://exchange.nagios.org/directory/Addons/Graphing-and-Trending/nagiosgraph/details I downloaded it, unzip it and then I run the install.pl as *sudo ./install.pl * I accepted every directory as default and done with installation. I changed the side.php to add my Trends link that are supported by this plugin. I restarted the server. But when I click on certain links. I get an error : *The requested URL /usr/local/nagiosgraph/cgi/showgroup.cgi was not found on this server. * Why this is happening? I can go into the directory /usr/local/nagiosgraph/cgi/ and view the .cgi file showgroup.cgi. But why its not working? Thanks in adavnce -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From work at paul.dubuc.org Thu Aug 2 15:44:09 2012 From: work at paul.dubuc.org (Paul Dubuc) Date: Thu, 02 Aug 2012 09:44:09 -0400 Subject: Creating a criteria: In-Reply-To: References: <50194F7A.4020104@nagios.com> <50195F61.7050406@paul.dubuc.org> Message-ID: <501A8429.8000009@paul.dubuc.org> Aravinth Anto Intern wrote: > On Wed, Aug 1, 2012 at 10:24 PM, Paul Dubuc wrote: >> Alex Griffin wrote: >> >>> Aravinth Anto Intern wrote: >>>> Hi all, I'm new to nagios. And trying to figure out how do I do this : >>>> >>>> Response time> 2s for 10 continuous requests in a 5 minutes. >>>> >>>> If this is the case then I need to create a alert. >>>> >>>> I defined a template for this : >>>> >>>> >>>> define host{ >>>> >>>> host_name test >>>> >>>> ;other stufs >>>> >>>> ;check command so that response time is less than 2s >>>> >>>> check_interval 5 >>>> >>>> retry_interval 1 >>>> >>>> max_check_attempts 10 >>>> >>>> check_period 24x7 >>>> >>>> } >>>> >>>> For my criteria : >>>> >>>> Response time> 2s for 10 continuous requests in a 5 minutes. >>>> >>>> Is that correct? >>>> >>>> Thanks in advance. >> > >>> No, this will only check once every 5 minutes. The max_check_attempts >>> directive is for retrying after a failed check. You need to find or >>> write a plugin that does all 10 requests itself and then set it up as a >>> *passive* check in Nagios. I believe it must be passive, otherwise >>> Nagios will kill it for running too long. >>> >>> Alex Griffin >>> --- >> >> Another way would be to set the retry interval to 0.5. If the whole purpose >> of the check is to fail when the response time is greater than 2 seconds, then >> the check would be run every 30 seconds as long as it keeps failing and would >> enter a hard state, generating a notification, if it kept failing for 5 minutes. >> > Thanks for replying. > > So doing this : > > > define host{ > > host_name test > > ;other stufs > > ;check command so that response time is less than 2s > > check_interval 0.5 > > retry_interval 1 > > max_check_attempts 10 > > check_period 24x7 > > } > > > Will do the job? > No. Set retry_interval to 0.5 instead. check_interval is what Nagios normally uses when the host is in a hard state. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From m.borsani at it.net Thu Aug 2 15:47:54 2012 From: m.borsani at it.net (Marco Borsani) Date: Thu, 2 Aug 2012 15:47:54 +0200 Subject: R: R: check_memory does not work properly In-Reply-To: <002001cd6fb5$f9a3d5c0$eceb8140$@it.net> References: <00a401cd6f23$a74926a0$f5db73e0$@it.net> <002001cd6fb5$f9a3d5c0$eceb8140$@it.net> Message-ID: <00d801cd70b5$70ac3d60$5204b820$@it.net> No idea? Regards Da: Marco Borsani [mailto:m.borsani at it.net] Inviato: mercoled? 1 agosto 2012 09:19 A: 'Nagios Users List' Oggetto: [Nagios-users] R: check_memory does not work properly Commands.cfg # 'check_local_memory' command definition define command{ command_name check_local_memory command_line $USER1$/check_memory -w $ARG1$ -c $ARG2$ } Services.cfg define service{ use active-service host_name service_description check_local_memory check_command check_local_memory!10%!5% max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 check_period 24x7 notification_interval 120 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 contact_groups CG_admin } >From line command: $> ./check_memory -w 10% -c 5% OK - free memory is 27% which is within expected threshold| mem=27;10;5;0;100 Regards Da: Morris, Patrick [mailto:patrick.morris at hp.com] Inviato: marted? 31 luglio 2012 23:24 A: nagios-users at lists.sourceforge.net Oggetto: Re: [Nagios-users] check_memory does not work properly Posting your check configuration is really helpful in cases like this. It?s almost impossible to give a good answer without knowing how you?ve set the check up. From: Marco Borsani [mailto:m.borsani at it.net] Sent: Tuesday, July 31, 2012 6:52 AM To: NAGIOS Subject: [Nagios-users] check_memory does not work properly Hi all I am using a simple plug-in to check the nagios server memory. When I run it like user Nagios, it works perfectly. I see this output: OK - free memory is 40% which is within expected threshold| mem=40;10;5;0;100 When I run it with Nagios program I receive this notification: .. Command: check_local_memory State: WARNING Message: (null) . Any idea ? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From work at paul.dubuc.org Thu Aug 2 16:00:02 2012 From: work at paul.dubuc.org (Paul Dubuc) Date: Thu, 02 Aug 2012 10:00:02 -0400 Subject: R: R: check_memory does not work properly In-Reply-To: <00d801cd70b5$70ac3d60$5204b820$@it.net> References: <00a401cd6f23$a74926a0$f5db73e0$@it.net> <002001cd6fb5$f9a3d5c0$eceb8140$@it.net> <00d801cd70b5$70ac3d60$5204b820$@it.net> Message-ID: <501A87E2.3020007@paul.dubuc.org> Maybe the problem is in your notification command. It may not be reporting the result correctly. Marco Borsani wrote: > No idea? > > Regards > > *Da:*Marco Borsani [mailto:m.borsani at it.net] > *Inviato:* mercoled? 1 agosto 2012 09:19 > *A:* 'Nagios Users List' > *Oggetto:* [Nagios-users] R: check_memory does not work properly > > Commands.cfg > > # 'check_local_memory' command definition > > define command{ > > command_name check_local_memory > > command_line $USER1$/check_memory -w $ARG1$ -c $ARG2$ > > } > > Services.cfg > > define service{ > > use active-service > > host_name > > service_description check_local_memory > > check_command check_local_memory!10%!5% > > max_check_attempts 3 > > normal_check_interval 5 > > retry_check_interval 1 > > check_period 24x7 > > notification_interval 120 > > notification_period 24x7 > > notification_options w,u,c,r > > notifications_enabled 1 > > contact_groups CG_admin > > } > > From line command: > > $> ./check_memory -w 10% -c 5% > > OK - free memory is 27% which is within expected threshold| mem=27;10;5;0;100 > > Regards > > *Da:*Morris, Patrick [mailto:patrick.morris at hp.com] > > *Inviato:* marted? 31 luglio 2012 23:24 > *A:* nagios-users at lists.sourceforge.net > > *Oggetto:* Re: [Nagios-users] check_memory does not work properly > > Posting your check configuration is really helpful in cases like this. It?s > almost impossible to give a good answer without knowing how you?ve set the > check up. > > *From:*Marco Borsani [mailto:m.borsani at it.net] > *Sent:* Tuesday, July 31, 2012 6:52 AM > *To:* NAGIOS > *Subject:* [Nagios-users] check_memory does not work properly > > Hi all > > I am using a simple plug-in to check the nagios server memory. > > When I run it like user Nagios, it works perfectly. I see this output: > > OK - free memory is 40% which is within expected threshold| mem=40;10;5;0;100 > > When I run it with Nagios program I receive this notification: > > ?.. > > Command: check_local_memory > > State: WARNING > > Message: (null) > > ?. > > Any idea ? > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From jpratt at norwich.edu Thu Aug 2 16:00:32 2012 From: jpratt at norwich.edu (James Pratt) Date: Thu, 2 Aug 2012 14:00:32 +0000 Subject: R: R: check_memory does not work properly In-Reply-To: <00d801cd70b5$70ac3d60$5204b820$@it.net> References: <00a401cd6f23$a74926a0$f5db73e0$@it.net> <002001cd6fb5$f9a3d5c0$eceb8140$@it.net> <00d801cd70b5$70ac3d60$5204b820$@it.net> Message-ID: <591A34BAEC8DBF44AFAB2E127B4D8A8E12F837@NUEXCH1.norwich.edu> Have you tried su'ing to the nagios user and running it from the command line? I am betting it's permissions issue. Cheers, James From: Marco Borsani [mailto:m.borsani at it.net] Sent: Thursday, August 02, 2012 9:48 AM To: 'Nagios Users List' Subject: [Nagios-users] R: R: check_memory does not work properly No idea? Regards Da: Marco Borsani [mailto:m.borsani at it.net] Inviato: mercoled? 1 agosto 2012 09:19 A: 'Nagios Users List' Oggetto: [Nagios-users] R: check_memory does not work properly Commands.cfg # 'check_local_memory' command definition define command{ command_name check_local_memory command_line $USER1$/check_memory -w $ARG1$ -c $ARG2$ } Services.cfg define service{ use active-service host_name service_description check_local_memory check_command check_local_memory!10%!5% max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 check_period 24x7 notification_interval 120 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 contact_groups CG_admin } >From line command: $> ./check_memory -w 10% -c 5% OK - free memory is 27% which is within expected threshold| mem=27;10;5;0;100 Regards Da: Morris, Patrick [mailto:patrick.morris at hp.com] Inviato: marted? 31 luglio 2012 23:24 A: nagios-users at lists.sourceforge.net Oggetto: Re: [Nagios-users] check_memory does not work properly Posting your check configuration is really helpful in cases like this. It's almost impossible to give a good answer without knowing how you've set the check up. From: Marco Borsani [mailto:m.borsani at it.net] Sent: Tuesday, July 31, 2012 6:52 AM To: NAGIOS Subject: [Nagios-users] check_memory does not work properly Hi all I am using a simple plug-in to check the nagios server memory. When I run it like user Nagios, it works perfectly. I see this output: OK - free memory is 40% which is within expected threshold| mem=40;10;5;0;100 When I run it with Nagios program I receive this notification: ..... Command: check_local_memory State: WARNING Message: (null) .... Any idea ? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From james.osbourn at citrix.com Thu Aug 2 15:57:51 2012 From: james.osbourn at citrix.com (James Osbourn) Date: Thu, 2 Aug 2012 14:57:51 +0100 Subject: R: R: check_memory does not work properly In-Reply-To: <00d801cd70b5$70ac3d60$5204b820$@it.net> References: <00a401cd6f23$a74926a0$f5db73e0$@it.net> <002001cd6fb5$f9a3d5c0$eceb8140$@it.net> <00d801cd70b5$70ac3d60$5204b820$@it.net> Message-ID: <09051C7A8945F944AB7AC4E86BEB1ED5EF2F862A44@LONPMAILBOX01.citrite.net> What user is your Nagios server running as? Is it the same as the user that you are using on the command line? Could you post more details about the exact check_memory command that you are using, there are several of them out there. The output you are getting from Nagios, is this on the web gui, or in one of the log files. It could be many things related to the check scripts itself, who you are running as where you are running the command. The command line is not always the same as when the server executes. James From: Marco Borsani [mailto:m.borsani at it.net] Sent: 02 August 2012 14:48 To: 'Nagios Users List' Subject: [Nagios-users] R: R: check_memory does not work properly No idea? Regards Da: Marco Borsani [mailto:m.borsani at it.net] Inviato: mercoled? 1 agosto 2012 09:19 A: 'Nagios Users List' Oggetto: [Nagios-users] R: check_memory does not work properly Commands.cfg # 'check_local_memory' command definition define command{ command_name check_local_memory command_line $USER1$/check_memory -w $ARG1$ -c $ARG2$ } Services.cfg define service{ use active-service host_name service_description check_local_memory check_command check_local_memory!10%!5% max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 check_period 24x7 notification_interval 120 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 contact_groups CG_admin } >From line command: $> ./check_memory -w 10% -c 5% OK - free memory is 27% which is within expected threshold| mem=27;10;5;0;100 Regards Da: Morris, Patrick [mailto:patrick.morris at hp.com] Inviato: marted? 31 luglio 2012 23:24 A: nagios-users at lists.sourceforge.net Oggetto: Re: [Nagios-users] check_memory does not work properly Posting your check configuration is really helpful in cases like this. It's almost impossible to give a good answer without knowing how you've set the check up. From: Marco Borsani [mailto:m.borsani at it.net] Sent: Tuesday, July 31, 2012 6:52 AM To: NAGIOS Subject: [Nagios-users] check_memory does not work properly Hi all I am using a simple plug-in to check the nagios server memory. When I run it like user Nagios, it works perfectly. I see this output: OK - free memory is 40% which is within expected threshold| mem=40;10;5;0;100 When I run it with Nagios program I receive this notification: ..... Command: check_local_memory State: WARNING Message: (null) .... Any idea ? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From ck at claudiokuenzler.com Thu Aug 2 16:13:46 2012 From: ck at claudiokuenzler.com (Claudio Kuenzler) Date: Thu, 2 Aug 2012 16:13:46 +0200 Subject: Problem in Installing the graph plugin. In-Reply-To: References: Message-ID: The automated install didn't work for me either, for to me unknown reasons. I didn't waste time debugging why it didn't work and did the manual installation instead, which is not that difficult. Work through section "Recipe for Manual Installation" in the INSTALL file: http://nagiosgraph.svn.sourceforge.net/viewvc/nagiosgraph/trunk/nagiosgraph/INSTALL On Thu, Aug 2, 2012 at 3:37 PM, Aravinth Anto Intern wrote: > Hi all, I'm trying to install Nagios Plugin : > http://exchange.nagios.org/directory/Addons/Graphing-and-Trending/nagiosgraph/details > > > I downloaded it, unzip it and then I run the install.pl as > > *sudo ./install.pl > * > > I accepted every directory as default and done with installation. > > I changed the side.php to add my Trends link that are supported by this > plugin. I restarted the server. But when I click on certain links. I get an > error : > > > *The requested URL /usr/local/nagiosgraph/cgi/showgroup.cgi was not found > on this server. > * > > Why this is happening? I can go into the directory > /usr/local/nagiosgraph/cgi/ and view the .cgi file showgroup.cgi. > > But why its not working? > > > Thanks in adavnce > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From m.borsani at it.net Thu Aug 2 16:19:28 2012 From: m.borsani at it.net (Marco Borsani) Date: Thu, 2 Aug 2012 16:19:28 +0200 Subject: R: R: R: check_memory does not work properly In-Reply-To: <591A34BAEC8DBF44AFAB2E127B4D8A8E12F837@NUEXCH1.norwich.edu> References: <00a401cd6f23$a74926a0$f5db73e0$@it.net> <002001cd6fb5$f9a3d5c0$eceb8140$@it.net> <00d801cd70b5$70ac3d60$5204b820$@it.net> <591A34BAEC8DBF44AFAB2E127B4D8A8E12F837@NUEXCH1.norwich.edu> Message-ID: <010401cd70b9$d98e8870$8cab9950$@it.net> Yes I did. Da: James Pratt [mailto:jpratt at norwich.edu] Inviato: gioved? 2 agosto 2012 16:01 A: 'Nagios Users List' Oggetto: Re: [Nagios-users] R: R: check_memory does not work properly Have you tried su?ing to the nagios user and running it from the command line? I am betting it?s permissions issue. Cheers, James From: Marco Borsani [mailto:m.borsani at it.net] Sent: Thursday, August 02, 2012 9:48 AM To: 'Nagios Users List' Subject: [Nagios-users] R: R: check_memory does not work properly No idea? Regards Da: Marco Borsani [mailto:m.borsani at it.net] Inviato: mercoled? 1 agosto 2012 09:19 A: 'Nagios Users List' Oggetto: [Nagios-users] R: check_memory does not work properly Commands.cfg # 'check_local_memory' command definition define command{ command_name check_local_memory command_line $USER1$/check_memory -w $ARG1$ -c $ARG2$ } Services.cfg define service{ use active-service host_name service_description check_local_memory check_command check_local_memory!10%!5% max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 check_period 24x7 notification_interval 120 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 contact_groups CG_admin } >From line command: $> ./check_memory -w 10% -c 5% OK - free memory is 27% which is within expected threshold| mem=27;10;5;0;100 Regards Da: Morris, Patrick [mailto:patrick.morris at hp.com] Inviato: marted? 31 luglio 2012 23:24 A: nagios-users at lists.sourceforge.net Oggetto: Re: [Nagios-users] check_memory does not work properly Posting your check configuration is really helpful in cases like this. It?s almost impossible to give a good answer without knowing how you?ve set the check up. From: Marco Borsani [mailto:m.borsani at it.net] Sent: Tuesday, July 31, 2012 6:52 AM To: NAGIOS Subject: [Nagios-users] check_memory does not work properly Hi all I am using a simple plug-in to check the nagios server memory. When I run it like user Nagios, it works perfectly. I see this output: OK - free memory is 40% which is within expected threshold| mem=40;10;5;0;100 When I run it with Nagios program I receive this notification: .. Command: check_local_memory State: WARNING Message: (null) . Any idea ? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From m.borsani at it.net Thu Aug 2 16:21:45 2012 From: m.borsani at it.net (Marco Borsani) Date: Thu, 2 Aug 2012 16:21:45 +0200 Subject: R: R: R: check_memory does not work properly In-Reply-To: <501A87E2.3020007@paul.dubuc.org> References: <00a401cd6f23$a74926a0$f5db73e0$@it.net> <002001cd6fb5$f9a3d5c0$eceb8140$@it.net> <00d801cd70b5$70ac3d60$5204b820$@it.net> <501A87E2.3020007@paul.dubuc.org> Message-ID: <010901cd70ba$2b6500c0$822f0240$@it.net> The outputs I show you are: 1) given by web gui (not correct) 2) given by line command (correct) The notification is the same that web gui -----Messaggio originale----- Da: Paul Dubuc [mailto:work at paul.dubuc.org] Inviato: gioved? 2 agosto 2012 16:00 A: Nagios Users List Cc: Marco Borsani Oggetto: Re: [Nagios-users] R: R: check_memory does not work properly Maybe the problem is in your notification command. It may not be reporting the result correctly. Marco Borsani wrote: > No idea? > > Regards > > *Da:*Marco Borsani [mailto:m.borsani at it.net] > *Inviato:* mercoled? 1 agosto 2012 09:19 > *A:* 'Nagios Users List' > *Oggetto:* [Nagios-users] R: check_memory does not work properly > > Commands.cfg > > # 'check_local_memory' command definition > > define command{ > > command_name check_local_memory > > command_line $USER1$/check_memory -w $ARG1$ -c $ARG2$ > > } > > Services.cfg > > define service{ > > use active-service > > host_name > > service_description check_local_memory > > check_command check_local_memory!10%!5% > > max_check_attempts 3 > > normal_check_interval 5 > > retry_check_interval 1 > > check_period 24x7 > > notification_interval 120 > > notification_period 24x7 > > notification_options w,u,c,r > > notifications_enabled 1 > > contact_groups CG_admin > > } > > From line command: > > $> ./check_memory -w 10% -c 5% > > OK - free memory is 27% which is within expected threshold| > mem=27;10;5;0;100 > > Regards > > *Da:*Morris, Patrick [mailto:patrick.morris at hp.com] > > *Inviato:* marted? 31 luglio 2012 23:24 > *A:* nagios-users at lists.sourceforge.net > > *Oggetto:* Re: [Nagios-users] check_memory does not work properly > > Posting your check configuration is really helpful in cases like this. > It s almost impossible to give a good answer without knowing how > you ve set the check up. > > *From:*Marco Borsani [mailto:m.borsani at it.net] > > *Sent:* Tuesday, July 31, 2012 6:52 AM > *To:* NAGIOS > *Subject:* [Nagios-users] check_memory does not work properly > > Hi all > > I am using a simple plug-in to check the nagios server memory. > > When I run it like user Nagios, it works perfectly. I see this output: > > OK - free memory is 40% which is within expected threshold| > mem=40;10;5;0;100 > > When I run it with Nagios program I receive this notification: > > .. > > Command: check_local_memory > > State: WARNING > > Message: (null) > > . > > Any idea ? > > > > ---------------------------------------------------------------------- > -------- > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. > Discussions will include endpoint security, mobile security and the > latest in malware threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From james.osbourn at citrix.com Thu Aug 2 15:50:19 2012 From: james.osbourn at citrix.com (James Osbourn) Date: Thu, 2 Aug 2012 14:50:19 +0100 Subject: Problem in Installing the graph plugin. In-Reply-To: References: Message-ID: <09051C7A8945F944AB7AC4E86BEB1ED5EF2F862A3E@LONPMAILBOX01.citrite.net> Did you run the install and check your prerequisites, I found that some of these are not present by default, You can run sudo ./install -check=prereq If everything is ok, you can proceed, otherwise you will need to install the missing packages At install time you may need to pass the argument for a standalone installation, this all depends on your environment sudo ./install -standalone Once installation has completed you can test that the server is working by going to one of the following websites http:///nagiosgraph/cgi-bin/showconfig.cgi or http:///nagiosgraph/cgi-bin/show.cgi This assumes your cgi data is located in cgi-bin and that you are running apache. This should help to get nagiosgraph working, you will then need to update Nagios to use the graphing plugin. James From: Aravinth Anto Intern [mailto:t-aravinth at juspay.in] Sent: 02 August 2012 14:38 To: Nagios Users List Subject: [Nagios-users] Problem in Installing the graph plugin. Hi all, I'm trying to install Nagios Plugin : http://exchange.nagios.org/directory/Addons/Graphing-and-Trending/nagiosgraph/details I downloaded it, unzip it and then I run the install.pl as sudo ./install.pl I accepted every directory as default and done with installation. I changed the side.php to add my Trends link that are supported by this plugin. I restarted the server. But when I click on certain links. I get an error : The requested URL /usr/local/nagiosgraph/cgi/showgroup.cgi was not found on this server. Why this is happening? I can go into the directory /usr/local/nagiosgraph/cgi/ and view the .cgi file showgroup.cgi. But why its not working? Thanks in adavnce -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From m.borsani at it.net Thu Aug 2 16:27:54 2012 From: m.borsani at it.net (Marco Borsani) Date: Thu, 2 Aug 2012 16:27:54 +0200 Subject: R: R: R: check_memory does not work properly In-Reply-To: <09051C7A8945F944AB7AC4E86BEB1ED5EF2F862A44@LONPMAILBOX01.citrite.net> References: <00a401cd6f23$a74926a0$f5db73e0$@it.net> <002001cd6fb5$f9a3d5c0$eceb8140$@it.net> <00d801cd70b5$70ac3d60$5204b820$@it.net> <09051C7A8945F944AB7AC4E86BEB1ED5EF2F862A44@LONPMAILBOX01.citrite.net> Message-ID: <011c01cd70bb$077a1910$166e4b30$@it.net> 1) Nagios user 2) Yes 3) Which details ? the point is that the plugin work correctly on command line, but not on web gui Command line out ? OK + + exit status 0 Web gui output ? WARNING + (null message) + exit status 1 Log file ? SERVICE ALERT: ; ;WARNING;HARD;3;(null) Regards Da: James Osbourn [mailto:james.osbourn at citrix.com] Inviato: gioved? 2 agosto 2012 15:58 A: Nagios Users List Oggetto: Re: [Nagios-users] R: R: check_memory does not work properly What user is your Nagios server running as? Is it the same as the user that you are using on the command line? Could you post more details about the exact check_memory command that you are using, there are several of them out there. The output you are getting from Nagios, is this on the web gui, or in one of the log files. It could be many things related to the check scripts itself, who you are running as where you are running the command. The command line is not always the same as when the server executes. James From: Marco Borsani [mailto:m.borsani at it.net] Sent: 02 August 2012 14:48 To: 'Nagios Users List' Subject: [Nagios-users] R: R: check_memory does not work properly No idea? Regards Da: Marco Borsani [mailto:m.borsani at it.net] Inviato: mercoled? 1 agosto 2012 09:19 A: 'Nagios Users List' Oggetto: [Nagios-users] R: check_memory does not work properly Commands.cfg # 'check_local_memory' command definition define command{ command_name check_local_memory command_line $USER1$/check_memory -w $ARG1$ -c $ARG2$ } Services.cfg define service{ use active-service host_name service_description check_local_memory check_command check_local_memory!10%!5% max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 check_period 24x7 notification_interval 120 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 contact_groups CG_admin } >From line command: $> ./check_memory -w 10% -c 5% OK - free memory is 27% which is within expected threshold| mem=27;10;5;0;100 Regards Da: Morris, Patrick [mailto:patrick.morris at hp.com] Inviato: marted? 31 luglio 2012 23:24 A: nagios-users at lists.sourceforge.net Oggetto: Re: [Nagios-users] check_memory does not work properly Posting your check configuration is really helpful in cases like this. It?s almost impossible to give a good answer without knowing how you?ve set the check up. From: Marco Borsani [mailto:m.borsani at it.net] Sent: Tuesday, July 31, 2012 6:52 AM To: NAGIOS Subject: [Nagios-users] check_memory does not work properly Hi all I am using a simple plug-in to check the nagios server memory. When I run it like user Nagios, it works perfectly. I see this output: OK - free memory is 40% which is within expected threshold| mem=40;10;5;0;100 When I run it with Nagios program I receive this notification: .. Command: check_local_memory State: WARNING Message: (null) . Any idea ? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From deep.sea.odyssey at gmail.com Thu Aug 2 16:40:13 2012 From: deep.sea.odyssey at gmail.com (Kazuo Watanabe) Date: Thu, 2 Aug 2012 14:40:13 +0000 (UTC) Subject: Codes for NRPE References: <201207300625.AA05504@S2007337.jp.fujitsu.com> Message-ID: Yu Watanabe jp.fujitsu.com> writes: > > Hi. > > I was looking for versions that can be compatible with following libssl version. > > libssl-dev ? 0.9.8g-16ubuntu3 > > So , I was thinking older than v 2.12 might do so. > > Thanks, > Yu > > Edwin Zoeller writes: > >What version are you looking for? > > > >----- Original Message ----- > >From: Yu Watanabe [mailto:yu.watanabe jp.fujitsu.com] > >Sent: Sunday, July 29, 2012 07:55 PM > >To: nagios-users lists.sourceforge.net lists.sourceforge.net> > >Subject: [Nagios-users] Codes for NRPE > > > >Hello all. > > > >I tried to access for the old versions for NRPE but it seems that its depricated. > > > >http://sourceforge.net/projects/nrpe/files/ > > > >Is there any ways to access the old versions? > > > >Thanks, > >Yu > > > > > Nice to meet you, Yu How about this? http://sourceforge.net/projects/nagios/files/nrpe-2.x/ Regards, Kaz ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Edwin.Zoeller at ama-assn.org Thu Aug 2 17:06:05 2012 From: Edwin.Zoeller at ama-assn.org (Edwin Zoeller) Date: Thu, 2 Aug 2012 15:06:05 +0000 Subject: R: R: check_memory does not work properly In-Reply-To: <00d801cd70b5$70ac3d60$5204b820$@it.net> References: <00a401cd6f23$a74926a0$f5db73e0$@it.net> <002001cd6fb5$f9a3d5c0$eceb8140$@it.net> <00d801cd70b5$70ac3d60$5204b820$@it.net> Message-ID: Why don't you specify the ARGS in the commands.cfg file? i.e. Commands.cfg # 'check_local_memory' command definition define command{ command_name check_local_memory command_line $USER1$/check_memory -w 10% -c 5% } Services.cfg define service{ use active-service host_name service_description check_local_memory check_command check_local_memory max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 check_period 24x7 notification_interval 120 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 contact_groups CG_admin } From: Marco Borsani [mailto:m.borsani at it.net] Sent: Thursday, August 02, 2012 8:48 AM To: 'Nagios Users List' Subject: [Nagios-users] R: R: check_memory does not work properly No idea? Regards Da: Marco Borsani [mailto:m.borsani at it.net] Inviato: mercoled? 1 agosto 2012 09:19 A: 'Nagios Users List' Oggetto: [Nagios-users] R: check_memory does not work properly Commands.cfg # 'check_local_memory' command definition define command{ command_name check_local_memory command_line $USER1$/check_memory -w $ARG1$ -c $ARG2$ } Services.cfg define service{ use active-service host_name service_description check_local_memory check_command check_local_memory!10%!5% max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 check_period 24x7 notification_interval 120 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 contact_groups CG_admin } >From line command: $> ./check_memory -w 10% -c 5% OK - free memory is 27% which is within expected threshold| mem=27;10;5;0;100 Regards Da: Morris, Patrick [mailto:patrick.morris at hp.com] Inviato: marted? 31 luglio 2012 23:24 A: nagios-users at lists.sourceforge.net Oggetto: Re: [Nagios-users] check_memory does not work properly Posting your check configuration is really helpful in cases like this. It's almost impossible to give a good answer without knowing how you've set the check up. From: Marco Borsani [mailto:m.borsani at it.net] Sent: Tuesday, July 31, 2012 6:52 AM To: NAGIOS Subject: [Nagios-users] check_memory does not work properly Hi all I am using a simple plug-in to check the nagios server memory. When I run it like user Nagios, it works perfectly. I see this output: OK - free memory is 40% which is within expected threshold| mem=40;10;5;0;100 When I run it with Nagios program I receive this notification: ..... Command: check_local_memory State: WARNING Message: (null) .... Any idea ? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Deborah.Martin at kognitio.com Thu Aug 2 17:02:04 2012 From: Deborah.Martin at kognitio.com (Deborah Martin) Date: Thu, 2 Aug 2012 15:02:04 +0000 Subject: R: R: R: check_memory does not work properly In-Reply-To: <011c01cd70bb$077a1910$166e4b30$@it.net> References: <00a401cd6f23$a74926a0$f5db73e0$@it.net> <002001cd6fb5$f9a3d5c0$eceb8140$@it.net> <00d801cd70b5$70ac3d60$5204b820$@it.net> <09051C7A8945F944AB7AC4E86BEB1ED5EF2F862A44@LONPMAILBOX01.citrite.net> <011c01cd70bb$077a1910$166e4b30$@it.net> Message-ID: Can you run check_memory plugin on the command line to get the full menu of options available to the plugin and post it here. Regards, Deborah From: Marco Borsani [mailto:m.borsani at it.net] Sent: 02 August 2012 15:28 To: 'Nagios Users List' Subject: [Nagios-users] R: R: R: check_memory does not work properly 1) Nagios user 2) Yes 3) Which details ? the point is that the plugin work correctly on command line, but not on web gui... Command line out --> OK + + exit status 0 Web gui output --> WARNING + (null message) + exit status 1 Log file --> SERVICE ALERT: ; ;WARNING;HARD;3;(null) Regards Da: James Osbourn [mailto:james.osbourn at citrix.com] Inviato: gioved? 2 agosto 2012 15:58 A: Nagios Users List Oggetto: Re: [Nagios-users] R: R: check_memory does not work properly What user is your Nagios server running as? Is it the same as the user that you are using on the command line? Could you post more details about the exact check_memory command that you are using, there are several of them out there. The output you are getting from Nagios, is this on the web gui, or in one of the log files. It could be many things related to the check scripts itself, who you are running as where you are running the command. The command line is not always the same as when the server executes. James From: Marco Borsani [mailto:m.borsani at it.net] Sent: 02 August 2012 14:48 To: 'Nagios Users List' Subject: [Nagios-users] R: R: check_memory does not work properly No idea? Regards Da: Marco Borsani [mailto:m.borsani at it.net] Inviato: mercoled? 1 agosto 2012 09:19 A: 'Nagios Users List' Oggetto: [Nagios-users] R: check_memory does not work properly Commands.cfg # 'check_local_memory' command definition define command{ command_name check_local_memory command_line $USER1$/check_memory -w $ARG1$ -c $ARG2$ } Services.cfg define service{ use active-service host_name service_description check_local_memory check_command check_local_memory!10%!5% max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 check_period 24x7 notification_interval 120 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 contact_groups CG_admin } >From line command: $> ./check_memory -w 10% -c 5% OK - free memory is 27% which is within expected threshold| mem=27;10;5;0;100 Regards Da: Morris, Patrick [mailto:patrick.morris at hp.com] Inviato: marted? 31 luglio 2012 23:24 A: nagios-users at lists.sourceforge.net Oggetto: Re: [Nagios-users] check_memory does not work properly Posting your check configuration is really helpful in cases like this. It's almost impossible to give a good answer without knowing how you've set the check up. From: Marco Borsani [mailto:m.borsani at it.net] Sent: Tuesday, July 31, 2012 6:52 AM To: NAGIOS Subject: [Nagios-users] check_memory does not work properly Hi all I am using a simple plug-in to check the nagios server memory. When I run it like user Nagios, it works perfectly. I see this output: OK - free memory is 40% which is within expected threshold| mem=40;10;5;0;100 When I run it with Nagios program I receive this notification: ..... Command: check_local_memory State: WARNING Message: (null) .... Any idea ? This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Jarlath.Lyons at Tideworks.com Fri Aug 3 03:22:58 2012 From: Jarlath.Lyons at Tideworks.com (Jarlath Lyons) Date: Fri, 3 Aug 2012 01:22:58 +0000 Subject: Codes for NRPE In-Reply-To: References: <201207300625.AA05504@S2007337.jp.fujitsu.com>, Message-ID: m Kazuo Watanabe wrote: Yu Watanabe jp.fujitsu.com> writes: > > Hi. > > I was looking for versions that can be compatible with following libssl version. > > libssl-dev ? 0.9.8g-16ubuntu3 > > So , I was thinking older than v 2.12 might do so. > > Thanks, > Yu > > Edwin Zoeller writes: > >What version are you looking for? > > > >----- Original Message ----- > >From: Yu Watanabe [mailto:yu.watanabe jp.fujitsu.com] > >Sent: Sunday, July 29, 2012 07:55 PM > >To: nagios-users lists.sourceforge.net lists.sourceforge.net> > >Subject: [Nagios-users] Codes for NRPE > > > >Hello all. > > > >I tried to access for the old versions for NRPE but it seems that its depricated. > > > >http://sourceforge.net/projects/nrpe/files/ > > > >Is there any ways to access the old versions? > > > >Thanks, > >Yu > > > > > Nice to meet you, Yu How about this? http://sourceforge.net/projects/nagios/files/nrpe-2.x/ Regards, Kaz ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Jarlath.Lyons at Tideworks.com Fri Aug 3 03:23:00 2012 From: Jarlath.Lyons at Tideworks.com (Jarlath Lyons) Date: Fri, 3 Aug 2012 01:23:00 +0000 Subject: R: R: R: check_memory does not work prou7ijijnu:perly In-Reply-To: <010401cd70b9$d98e8870$8cab9950$@it.net> References: <00a401cd6f23$a74926a0$f5db73e0$@it.net> <002001cd6fb5$f9a3d5c0$eceb8140$@it.net> <00d801cd70b5$70ac3d60$5204b820$@it.net> <591A34BAEC8DBF44AFAB2E127B4D8A8E12F837@NUEXCH1.norwich.edu>, <010401cd70b9$d98e8870$8cab9950$@it.net> Message-ID: I Marco Borsani wrote: Yes I did. Da: James Pratt [mailto:jpratt at norwich.edu] Inviato: gioved? 2 agosto 2012 16:01 A: 'Nagios Users List' Oggetto: Re: [Nagios-users] R: R: check_memory does not work properly Have you tried su?ing to the nagios user and running it from the command line? I am betting it?s permissions issue. Cheers, James From: Marco Borsani [mailto:m.borsani at it.net] Sent: Thursday, August 02, 2012 9:48 AM To: 'Nagios Users List' Subject: [Nagios-users] R: R: check_memory does not work properly No idea? Regards Da: Marco Borsani [mailto:m.borsani at it.net] Inviato: mercoled? 1 agosto 2012 09:19 A: 'Nagios Users List' Oggetto: [Nagios-users] R: check_memory does not work properly Commands.cfg # 'check_local_memory' command definition define command{ command_name check_local_memory command_line $USER1$/check_memory -w $ARG1$ -c $ARG2$ } Services.cfg define service{ use active-service host_name service_description check_local_memory check_command check_local_memory!10%!5% max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 check_period 24x7 notification_interval 120 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 contact_groups CG_admin } >From line command: $> ./check_memory -w 10% -c 5% OK - free memory is 27% which is within expected threshold| mem=27;10;5;0;100 Regards Da: Morris, Patrick [mailto:patrick.morris at hp.com] Inviato: marted? 31 luglio 2012 23:24 A: nagios-users at lists.sourceforge.net Oggetto: Re: [Nagios-users] check_memory does not work properly Posting your check configuration is really helpful in cases like this. It?s almost impossible to give a good answer without knowing how you?ve set the check up. From: Marco Borsani [mailto:m.borsani at it.net] Sent: Tuesday, July 31, 2012 6:52 AM To: NAGIOS Subject: [Nagios-users] check_memory does not work properly Hi all I am using a simple plug-in to check the nagios server memory. When I run it like user Nagios, it works perfectly. I see this output: OK - free memory is 40% which is within expected threshold| mem=40;10;5;0;100 When I run it with Nagios program I receive this notification: ?.. Command: check_local_memory State: WARNING Message: (null) ?. Any idea ? ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From yu.watanabe at jp.fujitsu.com Fri Aug 3 03:52:16 2012 From: yu.watanabe at jp.fujitsu.com (Yu Watanabe) Date: Fri, 03 Aug 2012 10:52:16 +0900 Subject: Codes for NRPE In-Reply-To: References: Message-ID: <201208030152.AA05525@S2007337.jp.fujitsu.com> Hello Kazuo. Nice to meet you too. Thanks for the reply! That was the website I was looking for ... I should have gone from the "nagios" . Not from the nrpe project itself. Thanks, Yu Jarlath Lyons ????????: >m > >Kazuo Watanabe wrote: > > >Yu Watanabe jp.fujitsu.com> writes: > >> >> Hi. >> >> I was looking for versions that can be compatible with following libssl > version. >> >> libssl-dev ? 0.9.8g-16ubuntu3 >> >> So , I was thinking older than v 2.12 might do so. >> >> Thanks, >> Yu >> >> Edwin Zoeller writes: >> >What version are you looking for? >> > >> >----- Original Message ----- >> >From: Yu Watanabe [mailto:yu.watanabe jp.fujitsu.com] >> >Sent: Sunday, July 29, 2012 07:55 PM >> >To: nagios-users lists.sourceforge.net >lists.sourceforge.net> >> >Subject: [Nagios-users] Codes for NRPE >> > >> >Hello all. >> > >> >I tried to access for the old versions for NRPE but it seems that its > depricated. >> > >> >http://sourceforge.net/projects/nrpe/files/ >> > >> >Is there any ways to access the old versions? >> > >> >Thanks, >> >Yu >> > >> > >> > >Nice to meet you, Yu > >How about this? > >http://sourceforge.net/projects/nagios/files/nrpe-2.x/ > > >Regards, >Kaz > > > > > >------------------------------------------------------------------------------ >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >Nagios-users mailing list >Nagios-users at 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 > >------------------------------------------------------------------------------ >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >Nagios-users mailing list >Nagios-users at 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 > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From m.borsani at it.net Fri Aug 3 10:31:48 2012 From: m.borsani at it.net (Marco Borsani) Date: Fri, 3 Aug 2012 10:31:48 +0200 Subject: R: R: R: check_memory does not work properly In-Reply-To: References: <00a401cd6f23$a74926a0$f5db73e0$@it.net> <002001cd6fb5$f9a3d5c0$eceb8140$@it.net> <00d801cd70b5$70ac3d60$5204b820$@it.net> Message-ID: <003001cd7152$7284b890$578e29b0$@it.net> ?!?!? Because not all the servers have same threshold By the way ..nothing will change putting ARGS in commands.cfg Da: Edwin Zoeller [mailto:Edwin.Zoeller at ama-assn.org] Inviato: gioved? 2 agosto 2012 17:06 A: Nagios Users List Oggetto: Re: [Nagios-users] R: R: check_memory does not work properly Why don?t you specify the ARGS in the commands.cfg file? i.e. Commands.cfg # 'check_local_memory' command definition define command{ command_name check_local_memory command_line $USER1$/check_memory -w 10% -c 5% } Services.cfg define service{ use active-service host_name service_description check_local_memory check_command check_local_memory max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 check_period 24x7 notification_interval 120 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 contact_groups CG_admin } From: Marco Borsani [mailto:m.borsani at it.net] Sent: Thursday, August 02, 2012 8:48 AM To: 'Nagios Users List' Subject: [Nagios-users] R: R: check_memory does not work properly No idea? Regards Da: Marco Borsani [mailto:m.borsani at it.net] Inviato: mercoled? 1 agosto 2012 09:19 A: 'Nagios Users List' Oggetto: [Nagios-users] R: check_memory does not work properly Commands.cfg # 'check_local_memory' command definition define command{ command_name check_local_memory command_line $USER1$/check_memory -w $ARG1$ -c $ARG2$ } Services.cfg define service{ use active-service host_name service_description check_local_memory check_command check_local_memory!10%!5% max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 check_period 24x7 notification_interval 120 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 contact_groups CG_admin } >From line command: $> ./check_memory -w 10% -c 5% OK - free memory is 27% which is within expected threshold| mem=27;10;5;0;100 Regards Da: Morris, Patrick [mailto:patrick.morris at hp.com] Inviato: marted? 31 luglio 2012 23:24 A: nagios-users at lists.sourceforge.net Oggetto: Re: [Nagios-users] check_memory does not work properly Posting your check configuration is really helpful in cases like this. It?s almost impossible to give a good answer without knowing how you?ve set the check up. From: Marco Borsani [mailto:m.borsani at it.net] Sent: Tuesday, July 31, 2012 6:52 AM To: NAGIOS Subject: [Nagios-users] check_memory does not work properly Hi all I am using a simple plug-in to check the nagios server memory. When I run it like user Nagios, it works perfectly. I see this output: OK - free memory is 40% which is within expected threshold| mem=40;10;5;0;100 When I run it with Nagios program I receive this notification: .. Command: check_local_memory State: WARNING Message: (null) . Any idea ? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From m.borsani at it.net Fri Aug 3 10:33:56 2012 From: m.borsani at it.net (Marco Borsani) Date: Fri, 3 Aug 2012 10:33:56 +0200 Subject: R: R: R: R: check_memory does not work properly In-Reply-To: References: <00a401cd6f23$a74926a0$f5db73e0$@it.net> <002001cd6fb5$f9a3d5c0$eceb8140$@it.net> <00d801cd70b5$70ac3d60$5204b820$@it.net> <09051C7A8945F944AB7AC4E86BEB1ED5EF2F862A44@LONPMAILBOX01.citrite.net> <011c01cd70bb$077a1910$166e4b30$@it.net> Message-ID: <004101cd7152$bea16e80$3be44b80$@it.net> Here it is. ./check_memory NAME check_memory - custom script to check free memory (RAM) on SmartOS and Linux machines SYNOPSIS check_memory -w -c [] -c, --critical Output this help text -w, --warning Output this help text -d, --debug Output useful development debug info -h, --help Output this help text Da: Deborah Martin [mailto:Deborah.Martin at kognitio.com] Inviato: gioved? 2 agosto 2012 17:02 A: Nagios Users List Oggetto: Re: [Nagios-users] R: R: R: check_memory does not work properly Can you run check_memory plugin on the command line to get the full menu of options available to the plugin and post it here. Regards, Deborah From: Marco Borsani [mailto:m.borsani at it.net] Sent: 02 August 2012 15:28 To: 'Nagios Users List' Subject: [Nagios-users] R: R: R: check_memory does not work properly 1) Nagios user 2) Yes 3) Which details ? the point is that the plugin work correctly on command line, but not on web gui Command line out ? OK + + exit status 0 Web gui output ? WARNING + (null message) + exit status 1 Log file ? SERVICE ALERT: ; ;WARNING;HARD;3;(null) Regards Da: James Osbourn [mailto:james.osbourn at citrix.com] Inviato: gioved? 2 agosto 2012 15:58 A: Nagios Users List Oggetto: Re: [Nagios-users] R: R: check_memory does not work properly What user is your Nagios server running as? Is it the same as the user that you are using on the command line? Could you post more details about the exact check_memory command that you are using, there are several of them out there. The output you are getting from Nagios, is this on the web gui, or in one of the log files. It could be many things related to the check scripts itself, who you are running as where you are running the command. The command line is not always the same as when the server executes. James From: Marco Borsani [mailto:m.borsani at it.net] Sent: 02 August 2012 14:48 To: 'Nagios Users List' Subject: [Nagios-users] R: R: check_memory does not work properly No idea? Regards Da: Marco Borsani [mailto:m.borsani at it.net] Inviato: mercoled? 1 agosto 2012 09:19 A: 'Nagios Users List' Oggetto: [Nagios-users] R: check_memory does not work properly Commands.cfg # 'check_local_memory' command definition define command{ command_name check_local_memory command_line $USER1$/check_memory -w $ARG1$ -c $ARG2$ } Services.cfg define service{ use active-service host_name service_description check_local_memory check_command check_local_memory!10%!5% max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 check_period 24x7 notification_interval 120 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 contact_groups CG_admin } >From line command: $> ./check_memory -w 10% -c 5% OK - free memory is 27% which is within expected threshold| mem=27;10;5;0;100 Regards Da: Morris, Patrick [mailto:patrick.morris at hp.com] Inviato: marted? 31 luglio 2012 23:24 A: nagios-users at lists.sourceforge.net Oggetto: Re: [Nagios-users] check_memory does not work properly Posting your check configuration is really helpful in cases like this. It?s almost impossible to give a good answer without knowing how you?ve set the check up. From: Marco Borsani [mailto:m.borsani at it.net] Sent: Tuesday, July 31, 2012 6:52 AM To: NAGIOS Subject: [Nagios-users] check_memory does not work properly Hi all I am using a simple plug-in to check the nagios server memory. When I run it like user Nagios, it works perfectly. I see this output: OK - free memory is 40% which is within expected threshold| mem=40;10;5;0;100 When I run it with Nagios program I receive this notification: .. Command: check_local_memory State: WARNING Message: (null) . Any idea ? This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From netwarrior863 at gmail.com Fri Aug 3 13:14:54 2012 From: netwarrior863 at gmail.com (Net Warrior) Date: Fri, 3 Aug 2012 08:14:54 -0300 Subject: Notification Issue - Only Executing One Method Message-ID: Hi there list. I'm having an issue with the notifiactions, I 'm using nagios-3.4.1-2.el6.x86_64, this is my configuration: define contact{ contact_name nagiosadmin ; Short name of user use generic-contact ; Inherit default values from generic-contact template (defined above) alias Administrador Nagios ; Full name of user host_notifications_enabled 1 service_notifications_enabled 1 service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands send-sms service_notification_commands notify-service-by-email host_notification_commands notify-host-by-email email user at domain.com can_submit_commands 1 } My aim with this configuration is to receive an SMS along with the email notification, but only one of them is executed, with the configuration above on the the sms is received if I comment the send-sms method I receive the mail, but both enabled do not work, I enabled some debug and there is no errors such as , cannot execute one or another, in the logs I only see that only one is executed but not both. Any ideas what am I doing wrong? If you need more information just let me know. Thanks for your time and support Best regards -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From netwarrior863 at gmail.com Fri Aug 3 13:58:26 2012 From: netwarrior863 at gmail.com (Net Warrior) Date: Fri, 3 Aug 2012 08:58:26 -0300 Subject: SOLVED - Notification Issue - Only Executing One Method Message-ID: Sorry for the noise The problem was that I have to include comma separated the notificatiob method like this: service_notification_commands send-sms,notify-service-by-email Thanks you very much ---------- Forwarded message ---------- From: Net Warrior Date: 2012/8/3 Subject: Notification Issue - Only Executing One Method To: nagios-users at lists.sourceforge.net Hi there list. I'm having an issue with the notifiactions, I 'm using nagios-3.4.1-2.el6.x86_64, this is my configuration: define contact{ contact_name nagiosadmin ; Short name of user use generic-contact ; Inherit default values from generic-contact template (defined above) alias Administrador Nagios ; Full name of user host_notifications_enabled 1 service_notifications_enabled 1 service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands send-sms service_notification_commands notify-service-by-email host_notification_commands notify-host-by-email email user at domain.com can_submit_commands 1 } My aim with this configuration is to receive an SMS along with the email notification, but only one of them is executed, with the configuration above on the the sms is received if I comment the send-sms method I receive the mail, but both enabled do not work, I enabled some debug and there is no errors such as , cannot execute one or another, in the logs I only see that only one is executed but not both. Any ideas what am I doing wrong? If you need more information just let me know. Thanks for your time and support Best regards -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From andrew at fulgent.co.uk Fri Aug 3 15:49:37 2012 From: andrew at fulgent.co.uk (Andrew Thompson) Date: Fri, 3 Aug 2012 13:49:37 +0000 Subject: Check Website Help Message-ID: Hi all, I have websites that I monitor. Some require just a yes is it up or no its down by hitting the site and searching for text on it. Others require the site to be logged into and trawled to test SQL backend so I need to provide it with a username/password. I also want performance data as I have just started using PNP4Nagios. I am using a custom written bash script at the moment, and this works fine, however it doesn't output any performance data. I have looked at Webinject but this uses its own graphing tool (gnuplot) and to reduce confusuion I don't really want to run 2 graphing tools. So 2 questions: 1. Is there a plugin available that does all I need above? Or 2. Anybody point me in the right direction in how to add performance data to my already working bash script? (im not a programmer, however my collegue is!) Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From nagios at flatto.net Fri Aug 3 16:18:38 2012 From: nagios at flatto.net (Assaf Flatto) Date: Fri, 03 Aug 2012 15:18:38 +0100 Subject: Check Website Help In-Reply-To: References: Message-ID: <501BDDBE.3030809@flatto.net> On 03/08/12 14:49, Andrew Thompson wrote: > > Hi all, > > I have websites that I monitor. > > Some require just a yes is it up or no its down by hitting the site > and searching for text on it. > > Others require the site to be logged into and trawled to test SQL > backend so I need to provide it with a username/password. > > I also want performance data as I have just started using PNP4Nagios. > > I am using a custom written bash script at the moment, and this works > fine, however it doesn't output any performance data. > > I have looked at Webinject but this uses its own graphing tool > (gnuplot) and to reduce confusuion I don't really want to run 2 > graphing tools. > > So 2 questions: > > 1.Is there a plugin available that does all I need above? > look here http://exchange.nagios.org/ > > Or > > 2.Anybody point me in the right direction in how to add performance > data to my already working bash script? (im not a programmer, however > my collegue is!) > http://nagios.sourceforge.net/docs/nagioscore/3/en/pluginapi.html > Thanks in advance. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From gallagher.peter at gmail.com Mon Aug 6 06:50:00 2012 From: gallagher.peter at gmail.com (Peter Gallagher) Date: Mon, 6 Aug 2012 14:50:00 +1000 Subject: Timezone and notification timeperiods Message-ID: == Nagios Core 3.3.1 == I'm running into an issue where notification emails are not being sent to contacts at the time periods I would expect. Seemingly Nagios calculates the notification period based on the underlying OS time rather than using the timezone specified in nagios.cfg. Curent timezone setup: 1. OS is set to timezone Australia/Brisbane 2. /etc/nagios/nagios.cfg is configured with "use_timezone=UTC" Current timeperiod setup: I have configured a series of timeperiods based on UTC for Brisbane, UK, California etc. e.g.: define timeperiod { alias UK Weekdays timeperiod_name uk_weekdays monday 08:00-18:00 tuesday 08:00-18:00 wednesday 08:00-18:00 thursday 08:00-18:00 friday 08:00-18:00 } define timeperiod { alias Queensland Weekdays timeperiod_name qld_weekdays sunday 22:00-24:00 monday 00:00-07:00,22:00-24:00 tuesday 00:00-07:00,22:00-24:00 wednesday 00:00-07:00,22:00-24:00 thursday 00:00-07:00,22:00-24:00 friday 00:00-07:00 } However Nagios is sending the notification emails to the wrong contacts by calculating the notification period based on the OS time rather than using the timezone value specified in nagios.cfg. For example if I change the OS timezone to UTC then everything works as expected. The TZ environment variable has not been set on the OS. Has anyone experienced a similar issue? Or have I incorrectly configured something? Thanks, Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Peter.Shankland at ricoh-rpl.com Mon Aug 6 11:02:23 2012 From: Peter.Shankland at ricoh-rpl.com (Peter.Shankland at ricoh-rpl.com) Date: Mon, 6 Aug 2012 10:02:23 +0100 Subject: Peter Shankland is out of the office. Message-ID: I will be out of the office starting 04/08/2012 and will not return until 27/08/2012. Please contact Tom Barnes if the request is urgent: Tom Barnes tom.barnes at ricoh-rpl.com 01952 205362 Regards. _________________________________________ Peter Shankland TECHNICAL NETWORK SPECIALIST IT DEPARTMENT Ricoh UK Products Limited Priorslee Telford, TF2 9NS UK Tel: +44 (0) 1952 290090 DD:+44 (0) 1952 205160 F:+44 (0) 1952 213100 M:+44 (0) 7919 444077 Peter.Shankland at ricoh-rpl.com (Embedded image moved to file: pic13323.gif) (Embedded image moved to file: pic03773.jpg) Please do not print this email unless absolutely necessary in order to save paper and energy, and you will contribute to resource conservation and CO2 reduction. This email including attachments is intended for the addressee(s) only. It may be labelled confidential/ private and contain confidential/private information. Please respect the wishes of the sender in the way you treat this email and the information contained within. If in doubt clarify the wishes of the sender before acting. If you have received this email in error, you may not review, copy or forward this message in whole or in part. Ricoh UK Products employees should delete from their system and notify us of the error via the ISMS Security Incident Reporting database. External recipients should delete from their system and alert us via email, advising the name of the sender and the time and date of receipt. Any views expressed in this email may not necessarily reflect those of Ricoh UK Products Ltd. You should ensure that the onward transmission, opening or use of this message or attachments will not adversely affect your system or data and carry out anti-virus checks before downloading. Internet communications are not secure and therefore Ricoh UK Products Ltd accepts no responsibility for any direct, indirect or consequential damage resulting from the transmission of this message. Registered in England No. 1763860 Registered Office: Ricoh UK Products Limited, Priorslee, Telford, Shropshire, TF2 9NS -------------- next part -------------- A non-text attachment was scrubbed... Name: pic13323.gif Type: image/gif Size: 2190 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pic03773.jpg Type: image/jpeg Size: 7544 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From m.borsani at it.net Mon Aug 6 11:18:13 2012 From: m.borsani at it.net (Marco Borsani) Date: Mon, 6 Aug 2012 11:18:13 +0200 Subject: R: R: R: R: R: check_memory does not work properly In-Reply-To: <004101cd7152$bea16e80$3be44b80$@it.net> References: <00a401cd6f23$a74926a0$f5db73e0$@it.net> <002001cd6fb5$f9a3d5c0$eceb8140$@it.net> <00d801cd70b5$70ac3d60$5204b820$@it.net> <09051C7A8945F944AB7AC4E86BEB1ED5EF2F862A44@LONPMAILBOX01.citrite.net> <011c01cd70bb$077a1910$166e4b30$@it.net> <004101cd7152$bea16e80$3be44b80$@it.net> Message-ID: <002a01cd73b4$6ddc3cf0$4994b6d0$@it.net> More info . Same configuration, on a nagios server 1.4.1 , work perfectly Da: Marco Borsani [mailto:m.borsani at it.net] Inviato: venerd? 3 agosto 2012 10:34 A: 'Nagios Users List' Oggetto: [Nagios-users] R: R: R: R: check_memory does not work properly Here it is. ./check_memory NAME check_memory - custom script to check free memory (RAM) on SmartOS and Linux machines SYNOPSIS check_memory -w -c [] -c, --critical Output this help text -w, --warning Output this help text -d, --debug Output useful development debug info -h, --help Output this help text Da: Deborah Martin [mailto:Deborah.Martin at kognitio.com] Inviato: gioved? 2 agosto 2012 17:02 A: Nagios Users List Oggetto: Re: [Nagios-users] R: R: R: check_memory does not work properly Can you run check_memory plugin on the command line to get the full menu of options available to the plugin and post it here. Regards, Deborah From: Marco Borsani [mailto:m.borsani at it.net] Sent: 02 August 2012 15:28 To: 'Nagios Users List' Subject: [Nagios-users] R: R: R: check_memory does not work properly 1) Nagios user 2) Yes 3) Which details ? the point is that the plugin work correctly on command line, but not on web gui Command line out ? OK + + exit status 0 Web gui output ? WARNING + (null message) + exit status 1 Log file ? SERVICE ALERT: ; ;WARNING;HARD;3;(null) Regards Da: James Osbourn [mailto:james.osbourn at citrix.com] Inviato: gioved? 2 agosto 2012 15:58 A: Nagios Users List Oggetto: Re: [Nagios-users] R: R: check_memory does not work properly What user is your Nagios server running as? Is it the same as the user that you are using on the command line? Could you post more details about the exact check_memory command that you are using, there are several of them out there. The output you are getting from Nagios, is this on the web gui, or in one of the log files. It could be many things related to the check scripts itself, who you are running as where you are running the command. The command line is not always the same as when the server executes. James From: Marco Borsani [mailto:m.borsani at it.net] Sent: 02 August 2012 14:48 To: 'Nagios Users List' Subject: [Nagios-users] R: R: check_memory does not work properly No idea? Regards Da: Marco Borsani [mailto:m.borsani at it.net] Inviato: mercoled? 1 agosto 2012 09:19 A: 'Nagios Users List' Oggetto: [Nagios-users] R: check_memory does not work properly Commands.cfg # 'check_local_memory' command definition define command{ command_name check_local_memory command_line $USER1$/check_memory -w $ARG1$ -c $ARG2$ } Services.cfg define service{ use active-service host_name service_description check_local_memory check_command check_local_memory!10%!5% max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 check_period 24x7 notification_interval 120 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 contact_groups CG_admin } >From line command: $> ./check_memory -w 10% -c 5% OK - free memory is 27% which is within expected threshold| mem=27;10;5;0;100 Regards Da: Morris, Patrick [mailto:patrick.morris at hp.com] Inviato: marted? 31 luglio 2012 23:24 A: nagios-users at lists.sourceforge.net Oggetto: Re: [Nagios-users] check_memory does not work properly Posting your check configuration is really helpful in cases like this. It?s almost impossible to give a good answer without knowing how you?ve set the check up. From: Marco Borsani [mailto:m.borsani at it.net] Sent: Tuesday, July 31, 2012 6:52 AM To: NAGIOS Subject: [Nagios-users] check_memory does not work properly Hi all I am using a simple plug-in to check the nagios server memory. When I run it like user Nagios, it works perfectly. I see this output: OK - free memory is 40% which is within expected threshold| mem=40;10;5;0;100 When I run it with Nagios program I receive this notification: .. Command: check_local_memory State: WARNING Message: (null) . Any idea ? This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From spareforjobs at gmail.com Mon Aug 6 12:22:17 2012 From: spareforjobs at gmail.com (praba karan) Date: Mon, 6 Aug 2012 15:52:17 +0530 Subject: How to add POST parameters Message-ID: Hi, I am beginner to nagios. I am trying to use " check_http_cloud_services.pl " plug-in, but problem is add POST parameters & values. Here is my terminal command, /usr/local/nagios/libexec# ./check_http_cloud_services.pl -H localhost -u /sample/test/ -p 8080 -m POST -r region -v south -T application/json -W Please help me to get the result. Thanks in advance. Regards, Prabakaran. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From adaugherity at tamu.edu Mon Aug 6 19:26:05 2012 From: adaugherity at tamu.edu (Andrew Daugherity) Date: Mon, 6 Aug 2012 17:26:05 +0000 Subject: check_openmanage: fix build on SUSE (docbook pkg name) Message-ID: <57ED10AF40B31A42B5D540BEEF94481321861F0B@mb03.ads.tamu.edu> Simple fix -- the package is named 'docbook-xsl-stylesheets' instead of 'docbook-style-xsl'. I added a variable for this to the global "if suse" section. Diff attached. Thanks, Andrew Daugherity Systems Analyst Division of Research, Texas A&M University -------------- next part -------------- A non-text attachment was scrubbed... Name: check_openmanage-docbook.diff Type: application/octet-stream Size: 986 bytes Desc: check_openmanage-docbook.diff URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From holger at CIS.FU-Berlin.DE Mon Aug 6 21:24:36 2012 From: holger at CIS.FU-Berlin.DE (Holger =?iso-8859-1?Q?Wei=DF?=) Date: Mon, 6 Aug 2012 21:24:36 +0200 Subject: Trouble with check_radius. In-Reply-To: References: Message-ID: <20120806192436.GB25151159@CIS.FU-Berlin.DE> * Luis H. Forchesatto [2012-08-01 14:53]: > Figuring out how to configure the check_radius plugin to check a remote > server that run radius I'v look at the configuration file it request and > mine config file are default, it was never used but is needed to make > check_radius work. Which parameter should I look to adjust it as needed to > make de plugin work? My configuration looks like this: authserver radius.example.com acctserver radius.example.com login_tries 3 login_timeout 30 radius_timeout 10 radius_retries 3 dictionary /etc/radiusclient/dictionary mapfile /etc/radiusclient/port-id-map servers /server/nagios/etc/radius/servers seqfile /server/nagios/var/run/radius/seq nologin /etc/nologin The "servers" file referenced in the above radiusclient.conf file holds the shared secret(s): radius.example.com sh4red-s3cr3t Holger ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From holger at CIS.FU-Berlin.DE Mon Aug 6 21:31:22 2012 From: holger at CIS.FU-Berlin.DE (Holger =?iso-8859-1?Q?Wei=DF?=) Date: Mon, 6 Aug 2012 21:31:22 +0200 Subject: check_ntp_peer reports stratum off-by-one? In-Reply-To: <20120722142840.GA6931@torres.zugschlus.de> References: <4EFD9A7C020000C40002D6F5@kent.pnn.police.uk> <918C015A-E51F-4F19-A335-677ECA5F97AB@conundrum.com> <4F02D7EC020000C40002D7BA@kent.pnn.police.uk> <20120714190232.GA27264@torres.zugschlus.de> <20120719125130.GI24006341@CIS.FU-Berlin.DE> <20120722142840.GA6931@torres.zugschlus.de> Message-ID: <20120806193122.GC25151159@CIS.FU-Berlin.DE> * Marc Haber [2012-07-22 16:28]: > On Thu, Jul 19, 2012 at 02:51:31PM +0200, Holger Wei? wrote: > > * Marc Haber [2012-07-14 21:02]: > > > Does this mean that the --swarn und --twarn options actually check the > > > stratum of the "best" peer of the queried server, not the queried > > > server itself? > > > > The --swarn and --scrit options (not --twarn), yes.? > > > ? http://permalink.gmane.org/gmane.network.nagios.plugins/4333 > > I would be in favour of sending a second query to get the results > right. Correcting the documentation to reflect what the software > really does is only the second best solution. I agree, but we usually try hard not to break existing configurations, so I merely updated the documentation for the moment. > > --tcrit=4 is equivalent to --tcrit=0:4 and tells the plugin to raise a > > critical alert if the number of truechimers is outside the range {0..4}. > > Now that you mention it, things are clear. And it is also mentioned in > the --help. But, is the example, "-m :5 -n :3" not the other way round? D'oh, indeed. Fixed, thanks for the hint. Holger ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From t.h.amundsen at usit.uio.no Mon Aug 6 21:46:55 2012 From: t.h.amundsen at usit.uio.no (Trond Hasle Amundsen) Date: Mon, 06 Aug 2012 21:46:55 +0200 Subject: check_openmanage: fix build on SUSE (docbook pkg name) In-Reply-To: <57ED10AF40B31A42B5D540BEEF94481321861F0B@mb03.ads.tamu.edu> (Andrew Daugherity's message of "Mon, 6 Aug 2012 17:26:05 +0000") References: <57ED10AF40B31A42B5D540BEEF94481321861F0B@mb03.ads.tamu.edu> Message-ID: <15t8vdrerbk.fsf@tux.uio.no> Andrew Daugherity writes: > Simple fix -- the package is named 'docbook-xsl-stylesheets' instead > of 'docbook-style-xsl'. I added a variable for this to the global "if > suse" section. Thanks Andrew, applied and pushed to master. Cheers, -- Trond H. Amundsen Center for Information Technology Services, University of Oslo ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From namezero at afim.info Tue Aug 7 14:33:24 2012 From: namezero at afim.info (Andreas M. Iwanowski) Date: Tue, 7 Aug 2012 12:33:24 +0000 Subject: Monitoring Distributed Resource Message-ID: <9AB8E944212F3B43B85B4CBACB89417C23537C4E@mcdos.erko-holdings.net> Dear Nagios Gurus, We've been using nagios for the past two years (actually centreon/nagios), and are very happy with it. However, I couldn't find a way to monitor a distributed resource. Let me explain what I mean. For example, I may have redundant VPN gateways, so if one goes offline it is not catastrophic. I may also have monitored devices behind the VPN, so I set up host dependencies. I would like to have host dependency in an "either or" configuration. I.e. if the primary gateway goes down and the standby takes over, I would still like to be notified about host troubles behind the VPN. Only if both were to be down nagios should stop sending messages. Does that make sense? I'm sure there is a way to implement this in Nagios, but I haven't found out how quite yet... Has anyone implemented something in this way? Mit freundlichen Gr??en / With best regards Andreas Iwanowski - IT Administrator / Software Developer www.awato.de | namezero at afim.info T: +49 (0)2133 2969 28 | F: +49 (0)2133 2969 69 awato Software GmbH | Salm Reifferscheidt Allee 37 | D-41540 Dormagen avisor-Support | T: +49 (0)621 6094 043 | F: +49 (0)621 6071 447 [awato Software GmbH] [cid:qrCode-63e3864e-f744-4ad2-aae3-38aaf37b4110a750d4] Gesch?ftsf?hrer: Ursula Iwanowski | HRB: Neuss 7208 | VAT-no.: DE 122796158 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: qrCode-63e3864e-f744-4ad2-aae3-38aaf37b4110a750d4 Type: image/png Size: 2502 bytes Desc: qrCode-63e3864e-f744-4ad2-aae3-38aaf37b4110a750d4 URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From cbeattie at geninfo.com Wed Aug 8 15:11:56 2012 From: cbeattie at geninfo.com (Chris Beattie) Date: Wed, 8 Aug 2012 09:11:56 -0400 Subject: Monitoring Distributed Resource In-Reply-To: <9AB8E944212F3B43B85B4CBACB89417C23537C4E@mcdos.erko-holdings.net> References: <9AB8E944212F3B43B85B4CBACB89417C23537C4E@mcdos.erko-holdings.net> Message-ID: <5022659C.4000204@geninfo.com> On 8/7/2012 8:33 AM, Andreas M. Iwanowski wrote: > I.e. if the primary gateway goes down and the standby takes over, I > would still like to be notified about host troubles behind the VPN. Only > if both were to be down nagios should stop sending messages. Would setting parent/child relationships, and maybe using the check_cluster plugin help you? I have two network core switches. Every physical host on the network has both of those two core switches defined as a parent in Nagios. Nagios will continue to check everything as long as at least one of those two switches is up. I did something similar with check_cluster. To monitor a VMware ESX cluster comprising three ESX hosts, I defined a Nagios host for each ESX host. There is another Nagios host to represent the cluster whose host check is a check_cluster command. Every guest has the cluster defined as its parent. If one ESX host goes down, the cluster goes into a warning state. If two or more ESX hosts go down, the cluster enters a critical state. The guests may all have migrated onto the still-running ESX host and might still be up, but the monitoring of individual guests can take a back seat at that point. -- -Chris Nothing in this message is intended to make or accept an offer or to form a contract, except that an attachment that is an image of a contract bearing the signature of an officer of our company may be or become a contract. This message (including any attachments) is intended only for the use of the individual or entity to whom it is addressed. It may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, we hereby notify you that any use, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this message in error, please notify us immediately by telephone and delete this message immediately. Thank you. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From m.borsani at it.net Wed Aug 8 15:16:26 2012 From: m.borsani at it.net (Marco Borsani) Date: Wed, 8 Aug 2012 15:16:26 +0200 Subject: strange behavior disabling checks Message-ID: <002801cd7568$0a207400$1e615c00$@it.net> Hi all Sometime happen that when I set "active_checks_enabled 0" in a service and reload the configuration, Nagios did not recognize the instruction. The server still executes the check. It is very strange, because I use several Nagios servers since 2003 and it is the first time for me with this problem Any idea ? Regards, Marco -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From nagios at flatto.net Wed Aug 8 15:33:36 2012 From: nagios at flatto.net (Assaf Flatto) Date: Wed, 08 Aug 2012 14:33:36 +0100 Subject: strange behavior disabling checks In-Reply-To: <002801cd7568$0a207400$1e615c00$@it.net> References: <002801cd7568$0a207400$1e615c00$@it.net> Message-ID: <50226AB0.9030505@flatto.net> Where did you set the directive ? in a template or in the individual service ? Can you share the relevant configuration data ? On 08/08/12 14:16, Marco Borsani wrote: > > Hi all > > Sometime happen that when I set "active_checks_enabled 0" in a > service and reload the configuration, Nagios did not recognize the > instruction. > > The server still executes the check. > > It is very strange, because I use several Nagios servers since 2003 > and it is the first time for me with this problem > > Any idea ? > > Regards, Marco > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From ae at op5.se Wed Aug 8 15:41:44 2012 From: ae at op5.se (Andreas Ericsson) Date: Wed, 08 Aug 2012 15:41:44 +0200 Subject: strange behavior disabling checks In-Reply-To: <002801cd7568$0a207400$1e615c00$@it.net> References: <002801cd7568$0a207400$1e615c00$@it.net> Message-ID: <50226C98.30004@op5.se> On 08/08/2012 03:16 PM, Marco Borsani wrote: > Hi all > > > > Sometime happen that when I set "active_checks_enabled 0" in a service > and reload the configuration, Nagios did not recognize the instruction. > > The server still executes the check. > It happens if you have enabled state retention data and disable active checks from the webinterface and then enable them again. In that case, altering the configuration doesn't help, since the saved retention state still claims you've manually overridden the configuration. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From m.borsani at it.net Wed Aug 8 15:47:01 2012 From: m.borsani at it.net (Marco Borsani) Date: Wed, 8 Aug 2012 15:47:01 +0200 Subject: R: strange behavior disabling checks In-Reply-To: <50226AB0.9030505@flatto.net> References: <002801cd7568$0a207400$1e615c00$@it.net> <50226AB0.9030505@flatto.net> Message-ID: <004d01cd756c$4fdf1470$ef9d3d50$@it.net> I set in the individual service. define service { host_name HOST service_description Admin_Modem_PROCS is_volatile 0 check_command check_modem_procs max_check_attempts 4 normal_check_interval 5 retry_check_interval 1 active_checks_enabled 0 passive_checks_enabled 0 check_period 24x7 event_handler_enabled 1 parallelize_check 1 obsess_over_service 1 check_freshness 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 notification_interval 120 notification_period 24x7 notification_options w,u,c,r notifications_enabled 0 contact_groups 00000_0, 00000_1, 00000_2 } Strange is that if I see the web page ?View config?, I can read right parameters, but when I open the service detail I see all ?green? windows. Service Checks: ENABLED ? ??? Passive Checks: ENABLED ? ??? Service Notifications: ENABLED ? ??? Event Handler: ENABLED Flap Detection: ENABLED Da: Assaf Flatto [mailto:nagios at flatto.net] Inviato: mercoled? 8 agosto 2012 15:34 A: Nagios Users List Oggetto: Re: [Nagios-users] strange behavior disabling checks Where did you set the directive ? in a template or in the individual service ? Can you share the relevant configuration data ? On 08/08/12 14:16, Marco Borsani wrote: Hi all Sometime happen that when I set ?active_checks_enabled 0? in a service and reload the configuration, Nagios did not recognize the instruction. The server still executes the check. It is very strange, because I use several Nagios servers since 2003 and it is the first time for me with this problem Any idea ? Regards, Marco ---------------------------------------------------------------------------- -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From m.borsani at it.net Wed Aug 8 16:15:31 2012 From: m.borsani at it.net (Marco Borsani) Date: Wed, 8 Aug 2012 16:15:31 +0200 Subject: R: strange behavior disabling checks In-Reply-To: <50226C98.30004@op5.se> References: <002801cd7568$0a207400$1e615c00$@it.net> <50226C98.30004@op5.se> Message-ID: <006401cd7570$4aeb8b70$e0c2a250$@it.net> Hi 1) state retention data enabled = YES (we need for maintain past data) 2) disable active checks from the webinterface = NO ( I delete many external command in the web interface, I left only acknowledge and scheduled downtime) I change directly the parameters in the cfg files and reload/restart nagios. Marco -----Messaggio originale----- Da: Andreas Ericsson [mailto:ae at op5.se] Inviato: mercoled? 8 agosto 2012 15:42 A: Nagios Users List Cc: Marco Borsani Oggetto: Re: [Nagios-users] strange behavior disabling checks It happens if you have enabled state retention data and disable active checks from the webinterface and then enable them again. In that case, altering the configuration doesn't help, since the saved retention state still claims you've manually overridden the configuration. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From namezero at afim.info Wed Aug 8 23:57:37 2012 From: namezero at afim.info (Andreas M. Iwanowski) Date: Wed, 8 Aug 2012 21:57:37 +0000 Subject: Monitoring Distributed Resource In-Reply-To: <5022659C.4000204@geninfo.com> References: <9AB8E944212F3B43B85B4CBACB89417C23537C4E@mcdos.erko-holdings.net> <5022659C.4000204@geninfo.com> Message-ID: <9AB8E944212F3B43B85B4CBACB89417C23538619@mcdos.erko-holdings.net> Thank you Chris! This sounds great So as I understand, if I define a parent<->child relationship between the VPN services (or core gateways) on the parent side and the remote gateway on the other side, the remote gateway will be checked (and we notified) as long as one core gateway is online? And since the remote hosts all depend on the remote gateway, they should inherit that behavior. Correct? I don't think the check_cluster would work since the host services are checked via nrpe running custom php monitoring scripts on the machines, but I'll check it out tomorrow at the office anyways. -Andy Mit freundlichen Gr??en / With best regards Andreas Iwanowski - IT Administrator / Software Developer www.awato.de | namezero at afim.info T: +49 (0)2133 2969 28 | F: +49 (0)2133 2969 69 awato Software GmbH | Salm Reifferscheidt Allee 37 | D-41540 Dormagen avisor-Support | T: +49 (0)621 6094 043 | F: +49 (0)621 6071 447 Gesch?ftsf?hrer: Ursula Iwanowski | HRB: Neuss 7208 | VAT-no.: DE 122796158 -----Original Message----- From: Chris Beattie [mailto:cbeattie at geninfo.com] Sent: Wednesday, August 08, 2012 3:12 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Monitoring Distributed Resource On 8/7/2012 8:33 AM, Andreas M. Iwanowski wrote: > I.e. if the primary gateway goes down and the standby takes over, I > would still like to be notified about host troubles behind the VPN. > Only if both were to be down nagios should stop sending messages. Would setting parent/child relationships, and maybe using the check_cluster plugin help you? I have two network core switches. Every physical host on the network has both of those two core switches defined as a parent in Nagios. Nagios will continue to check everything as long as at least one of those two switches is up. I did something similar with check_cluster. To monitor a VMware ESX cluster comprising three ESX hosts, I defined a Nagios host for each ESX host. There is another Nagios host to represent the cluster whose host check is a check_cluster command. Every guest has the cluster defined as its parent. If one ESX host goes down, the cluster goes into a warning state. If two or more ESX hosts go down, the cluster enters a critical state. The guests may all have migrated onto the still-running ESX host and might still be up, but the monitoring of individual guests can take a back seat at that point. -- -Chris Nothing in this message is intended to make or accept an offer or to form a contract, except that an attachment that is an image of a contract bearing the signature of an officer of our company may be or become a contract. This message (including any attachments) is intended only for the use of the individual or entity to whom it is addressed. It may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, we hereby notify you that any use, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this message in error, please notify us immediately by telephone and delete this message immediately. Thank you. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From razvan.cojocaru at 1and1.ro Thu Aug 9 08:39:26 2012 From: razvan.cojocaru at 1and1.ro (Razvan Cojocaru) Date: Thu, 9 Aug 2012 09:39:26 +0300 Subject: A couple of Nagios NEB plugin API questions Message-ID: <50235B1E.9040808@1and1.ro> Hello, I've read the "NEB Module API" document [1], and the nebstructs.h header, but I'd like more details about the members of nebstruct_notification_struct. The document shows the struct definition with no comments, and no example, and there are no comments for the individual members in the nebstructs.h header either. Also, this article [2] suggests that you can pass configuration data to your NEB module with this syntax: broker_module=/usr/local/nagios/bin/testmodule.o config_file=/usr/local/nagios/etc/testmodule.cfg How does one access that configuration data from within the plugin? Via a dedicated callback? By accessing some global data structure within the Nagios core process that loads my module? I thought I'd find this information in the PDF file, but "Appendix B: Catalog of Global Nagios Data Structures" only says "TBA". [1] http://nagios.sourceforge.net/download/contrib/documentation/misc/NEB%202x%20Module%20API.pdf [2] http://searchenterpriselinux.techtarget.com/tip/Managing-events-with-Nagios-Event-Broker Thanks, -- Razvan Cojocaru Linux Development Core Romania 1&1 Internet Development S.R.L. - Bucharest/Romania Web: www.1und1.de ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From ampranti at gmail.com Thu Aug 9 10:23:08 2012 From: ampranti at gmail.com (Andreas Brandino) Date: Thu, 9 Aug 2012 11:23:08 +0300 Subject: uptime check returns wrong result Message-ID: Hi all, I am using check_uptime.pl from here: http://exchange.nagios.org/directory/Plugins/System-Metrics/Uptime/check_uptime--2F-check_snmp_uptime/details The problem that I face is that this service caclulates SNMP service uptime instead of windows. If I restart the SNMP service (and not the server) , plugin This problem happen only to windows and not to linux or cisco devices. The check commands are: check_uptime.pl -H linux_server -C community -w 0 -c 15 -T unix-host check_uptime.pl -H windows_server -C community -w 0 -c 15 -T win Any ideas? Is the plugin not working as expected? Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From ae at op5.se Thu Aug 9 11:44:56 2012 From: ae at op5.se (Andreas Ericsson) Date: Thu, 09 Aug 2012 11:44:56 +0200 Subject: A couple of Nagios NEB plugin API questions In-Reply-To: <50235B1E.9040808@1and1.ro> References: <50235B1E.9040808@1and1.ro> Message-ID: <50238698.5030102@op5.se> On 08/09/2012 08:39 AM, Razvan Cojocaru wrote: > Hello, > > I've read the "NEB Module API" document [1], and the nebstructs.h > header, but I'd like more details about the members of > nebstruct_notification_struct. The document shows the struct definition > with no comments, and no example, and there are no comments for the > individual members in the nebstructs.h header either. > Well, the individual members are fairly self-explanatory, don't you think? Ethan's big on mnemonic names, and for a very good reason. You might want to check out some module and use as example though. mod_gearman provides a good resource, as does NDOUtils and Merlin. Livestatus is pretty nifty, but unless you're mentally equipped to follow the tons and tons of C++ boilerplate I advise against using it as anything but an excellent backend to your data. At http://git.op5.org/git/?p=nagios/merlin.git;a=summary you'll find the merlin source-code. If you're not git-literate you might want to download a snapshot. "module.c" and "hooks.c" has most of the code that handles nebstruct type objects. > Also, this article [2] suggests that you can pass configuration data to > your NEB module with this syntax: > > broker_module=/usr/local/nagios/bin/testmodule.o > config_file=/usr/local/nagios/etc/testmodule.cfg > > How does one access that configuration data from within the plugin? Via > a dedicated callback? By accessing some global data structure within the > Nagios core process that loads my module? > It's the "char *" argument to your module's nebmodule_init() function. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From razvan.cojocaru at 1and1.ro Thu Aug 9 12:16:01 2012 From: razvan.cojocaru at 1and1.ro (Razvan Cojocaru) Date: Thu, 9 Aug 2012 13:16:01 +0300 Subject: A couple of Nagios NEB plugin API questions In-Reply-To: <50238698.5030102@op5.se> References: <50235B1E.9040808@1and1.ro> <50238698.5030102@op5.se> Message-ID: <50238DE1.2010003@1and1.ro> > Well, the individual members are fairly self-explanatory, don't you > think? Ethan's big on mnemonic names, and for a very good reason. Yes, you can glean what they're for from their names, but that's not what I was asking. It's one thing to know that a field called "flags" should probably be set to some OR-ed or AND-ed bits, and quite another to know what those bits should be or what behaviour they will trigger, for example. And you can't quite glean even that much about what a void *object_ptr does or means. I'll figure out what the docs don't say by reading the code. > You might want to check out some module and use as example though. > mod_gearman provides a good resource, as does NDOUtils and Merlin. > Livestatus is pretty nifty, but unless you're mentally equipped to > follow the tons and tons of C++ boilerplate I advise against using > it as anything but an excellent backend to your data. > > At http://git.op5.org/git/?p=nagios/merlin.git;a=summary you'll > find the merlin source-code. If you're not git-literate you might > want to download a snapshot. "module.c" and "hooks.c" has most of > the code that handles nebstruct type objects. I'm already going that route, and yes, I am git-literate. Thanks for the suggestions! I didn't get to Merlin yet. >> broker_module=/usr/local/nagios/bin/testmodule.o >> config_file=/usr/local/nagios/etc/testmodule.cfg >> >> How does one access that configuration data from within the plugin? Via > > It's the "char *" argument to your module's nebmodule_init() function. Thanks! But the "char *" argument of nebmodule_init() passes the "command line arguments" for the module, i.e.: broker_module=/usr/local/nagios/bin/testmodule.o arguments However, I was asking about accessing data written in a regular Nagios .cfg file. The article I've quoted clearly implies that this can be done; it's possible that they're wrong, but if they're not, I'd like to know "extern whattype* what" gives me access to the parsed Nagios configuration data. Thanks, -- Razvan Cojocaru Linux Development Core Romania 1&1 Internet Development S.R.L. - Bucharest/Romania Web: www.1und1.de ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From ae at op5.se Thu Aug 9 13:24:13 2012 From: ae at op5.se (Andreas Ericsson) Date: Thu, 09 Aug 2012 13:24:13 +0200 Subject: A couple of Nagios NEB plugin API questions In-Reply-To: <50238DE1.2010003@1and1.ro> References: <50235B1E.9040808@1and1.ro> <50238698.5030102@op5.se> <50238DE1.2010003@1and1.ro> Message-ID: <50239DDD.30607@op5.se> On 08/09/2012 12:16 PM, Razvan Cojocaru wrote: >> Well, the individual members are fairly self-explanatory, don't you >> think? Ethan's big on mnemonic names, and for a very good reason. > > Yes, you can glean what they're for from their names, but that's not > what I was asking. It's one thing to know that a field called "flags" > should probably be set to some OR-ed or AND-ed bits, and quite another > to know what those bits should be or what behaviour they will trigger, > for example. > The flags are variations for the callback. All nebstructs have them. > And you can't quite glean even that much about what a void *object_ptr > does or means. > Yes you can, if you know just a tiny bit about Nagios. It's a pointer to either a host or a service. Which it is depends on the type of callback we're issuing. > I'll figure out what the docs don't say by reading the code. > > >> You might want to check out some module and use as example though. >> mod_gearman provides a good resource, as does NDOUtils and Merlin. >> Livestatus is pretty nifty, but unless you're mentally equipped to >> follow the tons and tons of C++ boilerplate I advise against using >> it as anything but an excellent backend to your data. >> >> At http://git.op5.org/git/?p=nagios/merlin.git;a=summary you'll >> find the merlin source-code. If you're not git-literate you might >> want to download a snapshot. "module.c" and "hooks.c" has most of >> the code that handles nebstruct type objects. > > I'm already going that route, and yes, I am git-literate. Thanks for the > suggestions! I didn't get to Merlin yet. > > >>> broker_module=/usr/local/nagios/bin/testmodule.o >>> config_file=/usr/local/nagios/etc/testmodule.cfg >>> >>> How does one access that configuration data from within the plugin? Via >> >> It's the "char *" argument to your module's nebmodule_init() function. > > Thanks! But the "char *" argument of nebmodule_init() passes the > "command line arguments" for the module, i.e.: > > broker_module=/usr/local/nagios/bin/testmodule.o arguments > Yes. I thought your line was just wrapped because it was too long. > However, I was asking about accessing data written in a regular Nagios > .cfg file. The article I've quoted clearly implies that this can be > done; it's possible that they're wrong, but if they're not, I'd like to > know "extern whattype* what" gives me access to the parsed Nagios > configuration data. > Good question. I just access the global variables after Nagios has parsed them. In Merlin, the module command argument points to a configuration file, which Merlin has its own parser for. You can't add random variables to the Nagios configuration file though, since that'll make Nagios barf rather than passing it on to modules. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From razvan.cojocaru at 1and1.ro Thu Aug 9 14:39:29 2012 From: razvan.cojocaru at 1and1.ro (Razvan Cojocaru) Date: Thu, 9 Aug 2012 15:39:29 +0300 Subject: A couple of Nagios NEB plugin API questions In-Reply-To: <50239DDD.30607@op5.se> References: <50235B1E.9040808@1and1.ro> <50238698.5030102@op5.se> <50238DE1.2010003@1and1.ro> <50239DDD.30607@op5.se> Message-ID: <5023AF81.3000502@1and1.ro> > Yes you can, if you know just a tiny bit about Nagios. It's a pointer > to either a host or a service. Which it is depends on the type of > callback we're issuing. That was entirely uncalled for. Some of us prefer to ask similarly minded peers where we feel it's not unreasonable to do so, rather than go with the "the code is the documentation" attitude (which I am not putting down, to each his (or her) own). I thought it obvious both that I've done my homework, and that I am quite able to stand on my own two feet. Apparently I wasn't as clear as I should have been. Thank you for answering, -- Razvan Cojocaru Linux Development Core Romania 1&1 Internet Development S.R.L. - Bucharest/Romania Web: www.1und1.de ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From cbeattie at geninfo.com Thu Aug 9 17:00:38 2012 From: cbeattie at geninfo.com (Chris Beattie) Date: Thu, 9 Aug 2012 11:00:38 -0400 Subject: Monitoring Distributed Resource In-Reply-To: <9AB8E944212F3B43B85B4CBACB89417C23538619@mcdos.erko-holdings.net> References: <9AB8E944212F3B43B85B4CBACB89417C23537C4E@mcdos.erko-holdings.net><5022659C.4000204@geninfo.com> <9AB8E944212F3B43B85B4CBACB89417C23538619@mcdos.erko-holdings.net> Message-ID: <5023D096.20604@geninfo.com> On 8/8/2012 5:57 PM, Andreas M. Iwanowski wrote: > So as I understand, if I define a parent<->child relationship between > the VPN services (or core gateways) on the parent side and the remote > gateway on the other side, the remote gateway will be checked (and we > notified) as long as one core gateway is online? This is how I picture your setup: core_gw_1 Nagios-< >-remote_gw-remote_host core_gw_2 If you put "parents core_gw_1,core_gw_2" in remote_gw's host definition and "parents remote_gw" in the remote_host's definition, then as long as Nagios thinks either core_gw is up, it should continue checking remote_gw and remote_host behind it. > And since the remote hosts all depend on the remote gateway, they should > inherit that behavior. Correct? When you say "depend", do you mean a host dependency as in you've got a "define hostdependency {..." somewhere? That's more advanced than what I'm talking about, and those dependencies are NOT inherited. You'd have to define one for every host. Defining parent/child relationships is a simple way to describe to Nagios the network's layout, specifically for determining if a host can be reached. If remote_host_1's parent is remote_gw and you copy remote_host_1 when you add remote_host_2, then remote_host_2 will also have remote_gw as a parent. > I don't think the check_cluster would work since the host services are > checked via nrpe running custom php monitoring scripts on the machines, > but I'll check it out tomorrow at the office anyways. Check_cluster is a meta-check. It doesn't perform the component service or host checks itself. Instead, it examines the results of the checks that Nagios is already performing. Now that I think about it some more, it's probably overkill for this case. -- -Chris Nothing in this message is intended to make or accept an offer or to form a contract, except that an attachment that is an image of a contract bearing the signature of an officer of our company may be or become a contract. This message (including any attachments) is intended only for the use of the individual or entity to whom it is addressed. It may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, we hereby notify you that any use, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this message in error, please notify us immediately by telephone and delete this message immediately. Thank you. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From ae at op5.se Fri Aug 10 09:41:02 2012 From: ae at op5.se (Andreas Ericsson) Date: Fri, 10 Aug 2012 09:41:02 +0200 Subject: A couple of Nagios NEB plugin API questions In-Reply-To: <5023AF81.3000502@1and1.ro> References: <50235B1E.9040808@1and1.ro> <50238698.5030102@op5.se> <50238DE1.2010003@1and1.ro> <50239DDD.30607@op5.se> <5023AF81.3000502@1and1.ro> Message-ID: <5024BB0E.1070607@op5.se> On 08/09/2012 02:39 PM, Razvan Cojocaru wrote: >> Yes you can, if you know just a tiny bit about Nagios. It's a pointer >> to either a host or a service. Which it is depends on the type of >> callback we're issuing. > > That was entirely uncalled for. Some of us prefer to ask similarly > minded peers where we feel it's not unreasonable to do so, rather than > go with the "the code is the documentation" attitude (which I am not > putting down, to each his (or her) own). > > I thought it obvious both that I've done my homework, and that I am > quite able to stand on my own two feet. Apparently I wasn't as clear as > I should have been. > I didn't mean to be rude. Since you do seem like a clever guy who has indeed done his homework I figured that question was more of a complaint along the lines of "this should probably be documented too". > > Thank you for answering, > You're welcome. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Eliot.Picken at wenaas.co.uk Fri Aug 10 09:58:56 2012 From: Eliot.Picken at wenaas.co.uk (Eliot Picken) Date: Fri, 10 Aug 2012 08:58:56 +0100 Subject: AUTO: Eliot Picken is out of the office (returning 13/08/2012) Message-ID: I am out of the office until 13/08/2012. I am currently out of the office and will be checking this email account outside office hours only. Your email has not been forwarded. For emergency issues, please contact Alex Lawrie on +44 (0) 1224 894 000 Note: This is an automated response to your message "Re: [Nagios-users] A couple of Nagios NEB plugin API questions" sent on 8/10/2012 8:41:02 AM. This is the only notification you will receive while this person is away. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From namezero at afim.info Sat Aug 11 13:23:05 2012 From: namezero at afim.info (Andreas M. Iwanowski) Date: Sat, 11 Aug 2012 11:23:05 +0000 Subject: Monitoring Distributed Resource [Resolved] Message-ID: <9AB8E944212F3B43B85B4CBACB89417C235391B4@mcdos.erko-holdings.net> Thank you! Your assumption about the layout is correct. I will try to define a parent/child relationship between core_gw_1, core_gw_2 and each remote gateway connected to it, and then a parent/child relationship between the remote_gw and remote_host. I've seen the tab for that in centreon, so I'll try to configure this next week. I appreciate all your great help whith this! Mit freundlichen Gr??en / With best regards Andreas Iwanowski - IT Administrator / Software Developer www.awato.de | namezero at afim.info T: +49 (0)2133 2969 28 | F: +49 (0)2133 2969 69 awato Software GmbH | Salm Reifferscheidt Allee 37 | D-41540 Dormagen avisor-Support | T: +49 (0)621 6094 043 | F: +49 (0)621 6071 447 Gesch?ftsf?hrer: Ursula Iwanowski | HRB: Neuss 7208 | VAT-no.: DE 122796158 -----Original Message----- From: Chris Beattie [mailto:cbeattie at geninfo.com] Sent: Thursday, August 09, 2012 5:01 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Monitoring Distributed Resource On 8/8/2012 5:57 PM, Andreas M. Iwanowski wrote: > So as I understand, if I define a parent<->child relationship between > the VPN services (or core gateways) on the parent side and the remote > gateway on the other side, the remote gateway will be checked (and we > notified) as long as one core gateway is online? This is how I picture your setup: core_gw_1 Nagios-< >-remote_gw-remote_host core_gw_2 If you put "parents core_gw_1,core_gw_2" in remote_gw's host definition and "parents remote_gw" in the remote_host's definition, then as long as Nagios thinks either core_gw is up, it should continue checking remote_gw and remote_host behind it. > And since the remote hosts all depend on the remote gateway, they > should inherit that behavior. Correct? When you say "depend", do you mean a host dependency as in you've got a "define hostdependency {..." somewhere? That's more advanced than what I'm talking about, and those dependencies are NOT inherited. You'd have to define one for every host. Defining parent/child relationships is a simple way to describe to Nagios the network's layout, specifically for determining if a host can be reached. If remote_host_1's parent is remote_gw and you copy remote_host_1 when you add remote_host_2, then remote_host_2 will also have remote_gw as a parent. > I don't think the check_cluster would work since the host services are > checked via nrpe running custom php monitoring scripts on the > machines, but I'll check it out tomorrow at the office anyways. Check_cluster is a meta-check. It doesn't perform the component service or host checks itself. Instead, it examines the results of the checks that Nagios is already performing. Now that I think about it some more, it's probably overkill for this case. -- -Chris Nothing in this message is intended to make or accept an offer or to form a contract, except that an attachment that is an image of a contract bearing the signature of an officer of our company may be or become a contract. This message (including any attachments) is intended only for the use of the individual or entity to whom it is addressed. It may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, we hereby notify you that any use, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this message in error, please notify us immediately by telephone and delete this message immediately. Thank you. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From s.felici at mclink.eu Mon Aug 13 10:19:19 2012 From: s.felici at mclink.eu (Simone Felici) Date: Mon, 13 Aug 2012 10:19:19 +0200 Subject: Nagios Macros: SERVICEDURATION Vs HOSTDURATION Message-ID: <5028B887.2070507@mclink.eu> Hello to all! I'm using the macros "HOSTDURATION" and "SERVICEDURATION" to notify how many time the host or service is in the current state. Looking on the definition: host: A string indicating the amount of time that the host has spent in its current state. Format is "XXh YYm ZZs", indicating hours, minutes and seconds. service: A string indicating the amount of time that the service has spent in its current state. Format is "XXh YYm ZZs", indicating hours, minutes and seconds. Assuming I've a host as follow: ping hostckeck with 2 retries (60secs) service with 3 retries (60secs) host checks made only on demand, when required When the host goes in DOWN HARD STATE (2 checks made, more than 60secs passed) the notification is sent with HOSTDURATION = "0d 0h 0m 0s" (or some secs more). When the service enters in CRITICAL HARD STATE (3 checks made, more than 120secs passed) the notification is sent with SERVICEDURATION = "0d 0h 2m 0s" (or some secs more, depends on latency I think). So, it seems the HOSTDURATION timer starts when the host is in HARD STATE down, but the SERVICEDURATION timer starts when the service is in his first SOFT STATE CRITICAL. Is this correct? A bug? I think the service is in the correct situation. Thank's a lot Simon ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From booleanenator at gmail.com Mon Aug 13 18:39:58 2012 From: booleanenator at gmail.com (David Fulton) Date: Mon, 13 Aug 2012 12:39:58 -0400 Subject: Derive service settings from hosts definition In-Reply-To: References: <20B84D30F1DB44F68BA66EB9249A798F@DRVStar> <5017F3A4.80107@geninfo.com> Message-ID: I was setting up multiple distributed Nagios servers with one acting as the "master" server and getting the sheer volume of hosts and service checks would have been a monumental task without this and some of the other features. I use hostgroups heavily too. I hardly ever create a service that is tied directly to a host, I usually create a host group, even if it just contains that one host because you never know when that specific service check will work perfectly for more than one host, That way all you have to do to add the service check is use the "+" operator on the hostgroups section of the host definition. Also I try to avoid modifying the hostgroups directly in a host. I will go and create an intermediate template in case I make another host that is just like the one I am defining now. Indeed, I have a template structure that goes from generic_host all the way down to freebsd_host (including a intermediate unix_host) redhat_host (including that same unix_host chained through a linux_host). It is extremely powerful once you get the hang of it. It can be confusing at first though. Best thing I ever did for it was to get a big whiteboard and chart it out. My actual commands are pretty much one per plugin and I keep the parameters as $ARG1$ $ARG2$ and so on. Even ones that you would think the $HOSTADDRESS$ would be appropriate, I put that in as the first parameter and then use $ARG1$ in the actual command because you never know when you might need to use a different IP (like a service IP bound to the same server). Best to be flexible. On Wed, Aug 1, 2012 at 5:13 PM, Vladislav Staroselskiy wrote: > This helped a lot - thank you both for explanations! I saw this link earlier, but somehow missed "implied inheritance" part of it. > > Vlad. > > -----Original Message----- > From: David Fulton > Sent: Tuesday, July 31, 2012 11:24 AM > To: Nagios Users List > Subject: Re: [Nagios-users] Derive service settings from hosts definition > > On Tue, Jul 31, 2012 at 11:03 AM, Chris Beattie wrote: >> On 7/30/2012 2:31 PM, Vladislav Staroselskiy wrote: >>> Is there any way to derive certain service options from the host definition? Is there any default inheritance behavior for it? >> ... >>> I really wish, service notification/contact options could be derived from hosts definitions to avoid this mess. If anyone has a >>> suggestion on how to better organize it, I would also appreciate your feedback. >> >> Nagios does almost exactly that, except for the enabling or disabling of >> notifications. >> >> Services will inherit their contact_groups, notification_interval, and >> notification_period from their associated host if those three directives >> are not set in the service's definition. >> >> Search for "implied inheritance" down the page here: >> http://nagios.sourceforge.net/docs/3_0/objectinheritance.html >> >> Also, you can use a + sign to signal additive inheritance, which comes >> in handy if you want to modify an implied inheritance without replacing >> it. It's explained directly above implied inheritance on that page. >> >> -- >> -Chris >> >> Nothing in this message is intended to make or accept an offer or to form a contract, except that an attachment that is an image >> of a contract bearing the signature of an officer of our company may be or become a contract. This message (including any >> attachments) is intended only for the use of the individual or entity to whom it is addressed. It may contain information that is >> non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney >> work product. If you are not the intended recipient, we hereby notify you that any use, dissemination, distribution, or copying of >> this message is strictly prohibited. If you have received this message in error, please notify us immediately by telephone and >> delete this message immediately. >> >> Thank you. >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at 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 > > Also keep in mind you can use user defined host based macros that can > be defined in the templates to make parameters to the service checks > inherited from the host as well. I used this feature to create classes > of hosts while at the same time giving me the option to tweak the > thresholds on a class-by-class or host-by-host basis. Very flexible. > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From booleanenator at gmail.com Mon Aug 13 18:50:03 2012 From: booleanenator at gmail.com (David Fulton) Date: Mon, 13 Aug 2012 12:50:03 -0400 Subject: R: R: R: check_memory does not work prou7ijijnu:perly In-Reply-To: References: <00a401cd6f23$a74926a0$f5db73e0$@it.net> <002001cd6fb5$f9a3d5c0$eceb8140$@it.net> <00d801cd70b5$70ac3d60$5204b820$@it.net> <591A34BAEC8DBF44AFAB2E127B4D8A8E12F837@NUEXCH1.norwich.edu> <010401cd70b9$d98e8870$8cab9950$@it.net> Message-ID: Three things, is check_memory a perl script and if so, have you enabled the embedded perl interpreter, if so, you may need to disable it for the check_memory plugin, there is some verbiage at the top of the script that you must put in. I forget what it is and it also depends on whether the default is to use the ePN or not. The other one is you might need to put double quotes around the $ARG1$ and $ARG2$ and see if that helps. I have found that with certain characters the shell gets in the way. Lastly, check and make sure that you are not blocking the % symbol in your natios.conf. There is a list of characters which are not allowed in shell commands. Seem to remember that one being in there by default which caused issues with so many plugins since a lot of them take percentages. On Thu, Aug 2, 2012 at 9:23 PM, Jarlath Lyons wrote: > I > > Marco Borsani wrote: > > > Yes I did. > > Da: James Pratt [mailto:jpratt at norwich.edu] > Inviato: gioved? 2 agosto 2012 16:01 > A: 'Nagios Users List' > Oggetto: Re: [Nagios-users] R: R: check_memory does not work properly > > Have you tried su?ing to the nagios user and running it from the command line? I am betting it?s permissions issue. > > Cheers, > James > > From: Marco Borsani [mailto:m.borsani at it.net] > Sent: Thursday, August 02, 2012 9:48 AM > To: 'Nagios Users List' > Subject: [Nagios-users] R: R: check_memory does not work properly > > No idea? > > Regards > > Da: Marco Borsani [mailto:m.borsani at it.net] > Inviato: mercoled? 1 agosto 2012 09:19 > A: 'Nagios Users List' > Oggetto: [Nagios-users] R: check_memory does not work properly > > Commands.cfg > > # 'check_local_memory' command definition > define command{ > command_name check_local_memory > command_line $USER1$/check_memory -w $ARG1$ -c $ARG2$ > } > > Services.cfg > > define service{ > use active-service > host_name > service_description check_local_memory > check_command check_local_memory!10%!5% > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > check_period 24x7 > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > notifications_enabled 1 > contact_groups CG_admin > } > > > >From line command: > $> ./check_memory -w 10% -c 5% > OK - free memory is 27% which is within expected threshold| mem=27;10;5;0;100 > > Regards > > > Da: Morris, Patrick [mailto:patrick.morris at hp.com] > Inviato: marted? 31 luglio 2012 23:24 > A: nagios-users at lists.sourceforge.net > Oggetto: Re: [Nagios-users] check_memory does not work properly > > Posting your check configuration is really helpful in cases like this. It?s almost impossible to give a good answer without knowing how you?ve set the check up. > > From: Marco Borsani [mailto:m.borsani at it.net] > Sent: Tuesday, July 31, 2012 6:52 AM > To: NAGIOS > Subject: [Nagios-users] check_memory does not work properly > > Hi all > > > I am using a simple plug-in to check the nagios server memory. > > When I run it like user Nagios, it works perfectly. I see this output: > OK - free memory is 40% which is within expected threshold| mem=40;10;5;0;100 > > When I run it with Nagios program I receive this notification: > > ?.. > > Command: check_local_memory > > State: WARNING > > Message: (null) > ?. > > > Any idea ? > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From jonathan.gazeley at bristol.ac.uk Wed Aug 15 16:07:25 2012 From: jonathan.gazeley at bristol.ac.uk (Jonathan Gazeley) Date: Wed, 15 Aug 2012 15:07:25 +0100 Subject: Defining passive checks Message-ID: <502BAD1D.9050903@bristol.ac.uk> I'm a long-time user of Nagios with active checks. Today I started using passive checks with NSCA and I'm having a problem. The documentation states "A service must be defined in Nagios before you can submit passive check results for it". I defined a config block like this, to define a service for the Oracle service that I want to monitor passively - omitting the check_command directive. define service { service_description Oracle host_name oddjob.resnet.bris.ac.uk use resnet-service } But running nagios -v gives this output: Error: Service description, host name, or check command is NULL Error: Could not register service (config file '/etc/nagios/nagios_service.cfg', starting on line 8618) Error processing object config files! So what's the approved way of defining a service without specifying a command for active checks? Thanks, Jonathan ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From masoud.tabrizi at gmail.com Wed Aug 15 16:15:23 2012 From: masoud.tabrizi at gmail.com (Masoud Tabrizi) Date: Wed, 15 Aug 2012 10:15:23 -0400 Subject: check_http and self signed certs Message-ID: <502BAEFB.5030800@gmail.com> All, We are using version 4.1.13 for the check_http for checking our URLs. it seems like the check_http is not able to get through the self signed certs we have installed; Are there any options or suggestions to get around this? thanks in advance Masoud Tabrizi ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From ck at claudiokuenzler.com Wed Aug 15 16:29:19 2012 From: ck at claudiokuenzler.com (Claudio Kuenzler) Date: Wed, 15 Aug 2012 16:29:19 +0200 Subject: check_http and self signed certs In-Reply-To: <502BAEFB.5030800@gmail.com> References: <502BAEFB.5030800@gmail.com> Message-ID: This should work, also with self-signed certs. Doing this in my Nagios config as well. Whats the check_http command you're launching? What's the error message? On Wed, Aug 15, 2012 at 4:15 PM, Masoud Tabrizi wrote: > All, > We are using version 4.1.13 for the check_http for checking our URLs. > it seems like the check_http is not able to get through the self signed > certs we have installed; > Are there any options or suggestions to get around this? > thanks in advance > Masoud Tabrizi > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mark.elsen at gmail.com Wed Aug 15 16:47:51 2012 From: mark.elsen at gmail.com (Mark Elsen) Date: Wed, 15 Aug 2012 16:47:51 +0200 Subject: Defining passive checks In-Reply-To: <502BAD1D.9050903@bristol.ac.uk> References: <502BAD1D.9050903@bristol.ac.uk> Message-ID: > I'm a long-time user of Nagios with active checks. Today I started using > passive checks with NSCA and I'm having a problem. > > The documentation states "A service must be defined in Nagios before you > can submit passive check results for it". > > I defined a config block like this, to define a service for the Oracle > service that I want to monitor passively - omitting the check_command > directive. > > define service { > service_description Oracle > host_name oddjob.resnet.bris.ac.uk > use resnet-service > } > > > > But running nagios -v gives this output: > > Error: Service description, host name, or check command is NULL > Error: Could not register service (config file > '/etc/nagios/nagios_service.cfg', starting on line 8618) > Error processing object config files! > > > So what's the approved way of defining a service without specifying a > command for active checks? > The approved way is that you can't because it remains a >service< definition, however the command can be dummy , although it must be defined. The command definition however is obliviated by using : active_checks_enabled 0 passive_checks_enabled 1 Sometimes for check_command check-host-alive is being used, this avoids long outstaniding stale data for the specific passive service definition. M. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From masoud.tabrizi at gmail.com Wed Aug 15 17:03:21 2012 From: masoud.tabrizi at gmail.com (masoud.tabrizi at gmail.com) Date: Wed, 15 Aug 2012 15:03:21 +0000 Subject: check_http and self signed certs In-Reply-To: References: <502BAEFB.5030800@gmail.com> Message-ID: <1776341747-1345043002-cardhu_decombobulator_blackberry.rim.net-1762028833-@b25.c12.bise6.blackberry> Using -H url -I IP -s string -f follow and -p where applicable Timeout seems to be the issue yet the URLs are loading fine in less than a second, (-t is set to 45 seconds as well) Thanks -----Original Message----- From: Claudio Kuenzler Date: Wed, 15 Aug 2012 16:29:19 To: Nagios Users List Reply-To: Nagios Users List Subject: Re: [Nagios-users] check_http and self signed certs ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From ck at claudiokuenzler.com Wed Aug 15 17:11:44 2012 From: ck at claudiokuenzler.com (Claudio Kuenzler) Date: Wed, 15 Aug 2012 17:11:44 +0200 Subject: check_http and self signed certs In-Reply-To: <1776341747-1345043002-cardhu_decombobulator_blackberry.rim.net-1762028833-@b25.c12.bise6.blackberry> References: <502BAEFB.5030800@gmail.com> <1776341747-1345043002-cardhu_decombobulator_blackberry.rim.net-1762028833-@b25.c12.bise6.blackberry> Message-ID: On Wed, Aug 15, 2012 at 5:03 PM, wrote: > Using -H url -I IP -s string -f follow and -p where applicable > Timeout seems to be the issue yet the URLs are loading fine in less than a > second, (-t is set to 45 seconds as well) > Thanks > Generally you can use -S and -p 443 for SSL-sites. It doesn't matter if the certificate is verified or self-signed. ./check_http -H www.example.com -p 443 -S -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From edrendar at gmail.com Wed Aug 15 17:36:00 2012 From: edrendar at gmail.com (Eduardo Montes de Oca S.) Date: Wed, 15 Aug 2012 10:36:00 -0500 Subject: Issues with check_by_ssh Message-ID: Hi list, I have some issues with the plugin "check_by_ssh". In particular, there is one error: When I run a shell script located in another server, from the Nagios server using the check_by_ssh plugin, I don't have any errors and I can see the result of the script, like this: *root at nagioserver# /usr/lib/nagios/plugins/check_by_ssh -l root -H "ipxenserver" -C /usr/lib/nagios/plugins/check_Xencpu ?OK:CPU%= 3?* * * But, by any strange reason, when I configure the check for Nagios presents the results in its interface, I have the error: [image: Im?genes integradas 1] I have made the ssh authorization keys in both servers (Nagios and Xen), I configured the users, permissions,etc. And I can't to do this work it. Could someone help me solve this problem???? This is a part of my definition files: * #XENServer * * define command { command_name check_by_ssh_xentop command_line /usr/lib/nagios/plugins/check_by_ssh -l '$ARG1$' -H '$HOSTADDRESS$' -C '$ARG2$' -i '$ARG3$' } * *#Hypervisor check* * define service{* * use generic-service* * host_name ORLANDO * * service_description Hypervisor CPU* * check_command check_by_ssh_xentop!root!ipxenserver!/usr/lib/nagios/plugins/check_Xencpu.sh!/root/.ssh/id_rsa! * * }* Regards! -- *IC.** Eduardo Montes de Oca S?nchez *Skype: edrendar Gmail: edrendar at gmail.com MSN: ed_montesdeoca at hotmail.com Movil: 5523419886 https://linuxcounter.net/cert/549074.png -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 22290 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From BChan at shawcor.com Wed Aug 15 17:04:52 2012 From: BChan at shawcor.com (Brian Chan) Date: Wed, 15 Aug 2012 11:04:52 -0400 Subject: AUTO: Chan, Brian is away from the office (returning 16/08/2012) Message-ID: I am out of the office until 16/08/2012. I will respond to your message when I return. If this is a request for support, click here to open an ITRequest--:> mailto:itrequest at shawcor.com Alternatively, all questions can be directed to the Help Desk at 416-744-5557 Brian Chan Note: This is an automated response to your message "Nagios-users Digest, Vol 75, Issue 8" sent on 08/15/2012 11:04:11. This is the only notification you will receive while this person is away. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From edrendar at gmail.com Wed Aug 15 19:52:15 2012 From: edrendar at gmail.com (Eduardo Montes de Oca S.) Date: Wed, 15 Aug 2012 12:52:15 -0500 Subject: Issues with check_by_ssh In-Reply-To: References: Message-ID: Hi list, I have some issues with the plugin "check_by_ssh". In particular, there is one error: When I run a shell script located in another server, from the Nagios server using the check_by_ssh plugin, I don't have any errors and I can see the result of the script, like this: *root at nagioserver# /usr/lib/nagios/plugins/check_by_ssh -l root -H "ipxenserver" -C /usr/lib/nagios/plugins/check_Xencpu ?OK:CPU%= 3?* * * But, by any strange reason, when I configure the check for Nagios presents the results in its interface, I have the error: [image: Im?genes integradas 1] I have made the ssh authorization keys in both servers (Nagios and Xen), I configured the users, permissions,etc. And I can't to do this work it. Could someone help me solve this problem???? This is a part of my definition files: * #XENServer * * define command { command_name check_by_ssh_xentop command_line /usr/lib/nagios/plugins/check_by_ssh -l '$ARG1$' -H '$HOSTADDRESS$' -C '$ARG2$' -i '$ARG3$' } * *#Hypervisor check* * define service{* * use generic-service* * host_name ORLANDO * * service_description Hypervisor CPU* * check_command check_by_ssh_xentop!root!ipxenserver!/usr/lib/nagios/plugins/check_Xencpu.sh!/root/.ssh/id_rsa! * * }* Regards! -- *IC.** Eduardo Montes de Oca S?nchez *Skype: edrendar Gmail: edrendar at gmail.com MSN: ed_montesdeoca at hotmail.com Movil: 5523419886 https://linuxcounter.net/cert/549074.png -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 22290 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From badri at diglinks.com Wed Aug 15 19:45:31 2012 From: badri at diglinks.com (Badri Pillai) Date: Wed, 15 Aug 2012 19:45:31 +0200 Subject: Issues with check_by_ssh In-Reply-To: References: Message-ID: <012a01cd7b0d$c40e1160$4c2a3420$@diglinks.com> Hi, since the plugin is executed as user nagios, check if the command (including all params) works as user nagios (or whatever user id it is running as) Problem could be: 1) Nagios user can?t read the ssh key file as it resides in root directory 2) Or it can?t write the ~nagios/.ssh/known_hosts file PS: In general it is not a good practice to use root ssh key for nagios commands I would suggest to create a ssh key for nagios user and place it in nagios home or a place where nagios user has access to Regards, bp Von: Eduardo Montes de Oca S. [mailto:edrendar at gmail.com] Gesendet: Mittwoch, 15. August 2012 17:36 An: nagios-users at lists.sourceforge.net Betreff: [Nagios-users] Issues with check_by_ssh Hi list, I have some issues with the plugin "check_by_ssh". In particular, there is one error: When I run a shell script located in another server, from the Nagios server using the check_by_ssh plugin, I don't have any errors and I can see the result of the script, like this: root at nagioserver# /usr/lib/nagios/plugins/check_by_ssh -l root -H "ipxenserver" -C /usr/lib/nagios/plugins/check_Xencpu ?OK:CPU%= 3? But, by any strange reason, when I configure the check for Nagios presents the results in its interface, I have the error: Im?genes integradas 1 I have made the ssh authorization keys in both servers (Nagios and Xen), I configured the users, permissions,etc. And I can't to do this work it. Could someone help me solve this problem???? This is a part of my definition files: #XENServer define command { command_name check_by_ssh_xentop command_line /usr/lib/nagios/plugins/check_by_ssh -l '$ARG1$' -H '$HOSTADDRESS$' -C '$ARG2$' -i '$ARG3$' } #Hypervisor check define service{ use generic-service host_name ORLANDO service_description Hypervisor CPU check_command check_by_ssh_xentop!root!ipxenserver!/usr/lib/nagios/plugins/check_Xencpu.sh !/root/.ssh/id_rsa! } Regards! -- IC. Eduardo Montes de Oca S?nchez Skype: edrendar Gmail: edrendar at gmail.com MSN: ed_montesdeoca at hotmail.com Movil: 5523419886 https://linuxcounter.net/cert/549074.png -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 22290 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From patrick.morris at hp.com Wed Aug 15 21:04:37 2012 From: patrick.morris at hp.com (Morris, Patrick) Date: Wed, 15 Aug 2012 19:04:37 +0000 Subject: Issues with check_by_ssh In-Reply-To: References: Message-ID: It?s highly unlikely that the Nagios user has permissions to use a key owned by root, and that?s a good thing. From: Eduardo Montes de Oca S. [mailto:edrendar at gmail.com] Sent: Wednesday, August 15, 2012 10:52 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Issues with check_by_ssh Hi list, I have some issues with the plugin "check_by_ssh". In particular, there is one error: When I run a shell script located in another server, from the Nagios server using the check_by_ssh plugin, I don't have any errors and I can see the result of the script, like this: root at nagioserver# /usr/lib/nagios/plugins/check_by_ssh -l root -H "ipxenserver" -C /usr/lib/nagios/plugins/check_Xencpu ?OK:CPU%= 3? But, by any strange reason, when I configure the check for Nagios presents the results in its interface, I have the error: Im?genes integradas 1 I have made the ssh authorization keys in both servers (Nagios and Xen), I configured the users, permissions,etc. And I can't to do this work it. Could someone help me solve this problem???? This is a part of my definition files: #XENServer define command { command_name check_by_ssh_xentop command_line /usr/lib/nagios/plugins/check_by_ssh -l '$ARG1$' -H '$HOSTADDRESS$' -C '$ARG2$' -i '$ARG3$' } #Hypervisor check define service{ use generic-service host_name ORLANDO service_description Hypervisor CPU check_command check_by_ssh_xentop!root!ipxenserver!/usr/lib/nagios/plugins/check_Xencpu.sh !/root/.ssh/id_rsa! } Regards! -- IC. Eduardo Montes de Oca S?nchez Skype: edrendar Gmail: edrendar at gmail.com MSN: ed_montesdeoca at hotmail.com Movil: 5523419886 https://linuxcounter.net/cert/549074.png -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 22290 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 6231 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From edrendar at gmail.com Thu Aug 16 00:07:20 2012 From: edrendar at gmail.com (Eduardo Montes de Oca S.) Date: Wed, 15 Aug 2012 17:07:20 -0500 Subject: Issues with check_by_ssh In-Reply-To: References: Message-ID: Hi friends, Also, I've been doing some tests with the user "nagios" but I obteined the same result. In this case, I tried in the context of the user "Nagios" but it works through the terminal: *nagios at nagioserver:~$ /usr/lib/nagios/plugins/check_by_ssh -l nagios -H 172.16.31.2 -C "/usr/lib/nagios/plugins/check_Xencpu" -i /var/lib/nagios/.ssh/id_rsa* *?OK:CPU%= 10?* If I set up my definition of the command: *#Check Hypervisor* * define service{* * use generic-service* * host_name ORLANDO* * service_description Hypervisor CPU* * check_command check_by_ssh_xentop!nagios!172.16.31.2!/usr/lib/nagios/plugins/check_Xencpu!/var/lib/nagios/.ssh/id_rsa! * * }* But, the result is not correct: [image: Im?genes integradas 1] Regards! Eduardo ** ** > > Hi list,**** > > ** ** > > I have some issues with the plugin "check_by_ssh". In particular, there is > one error:**** > > ** ** > > When I run a shell script located in another server, from the Nagios > server using the check_by_ssh plugin, I don't have any errors and I can see > the result of the script, like this:**** > > ** ** > > *root at nagioserver# ** /usr/lib/nagios/plugins/check_by_ssh > -l root -H "ipxenserver" -C /usr/lib/nagios/plugins/check_Xencpu > ?OK:CPU%= 3?***** > > ** ** > > But, by any strange reason, when I configure the check for Nagios presents > the results in its interface, I have the error:**** > > [image: Im?genes integradas 1]**** > > ** ** > > I have made the ssh authorization keys in both servers (Nagios and Xen), I > configured the users, permissions,etc. And I can't to do this work it.**** > > ** ** > > Could someone help me solve this problem????**** > > ** ** > > ** ** > > This is a part of my definition files:**** > > *#XENServer* > > *define command {* > > * command_name check_by_ssh_xentop* > > * command_line /usr/lib/nagios/plugins/check_by_ssh -l > '$ARG1$' -H '$HOSTADDRESS$' -C '$ARG2$' -i '$ARG3$'* > > * }* > > *#Hypervisor check***** > > * define service{***** > > * use generic-service***** > > * host_name ORLANDO ***** > > * service_description Hypervisor CPU***** > > * check_command > check_by_ssh_xentop!root!ipxenserver!/usr/lib/nagios/plugins/check_Xencpu.sh!/root/.ssh/id_rsa! > ***** > > * }***** > > ** ** > > ** ** > > ** ** > > ** ** > > Regards!**** > > ** ** > > ** ** > > -- **** > > *IC.** Eduardo Montes de Oca S?nchez > *Skype: edrendar > Gmail: edrendar at gmail.com > MSN: ed_montesdeoca at hotmail.com > Movil: 5523419886**** > > https://linuxcounter.net/cert/549074.png**** > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -- *IC.** Eduardo Montes de Oca S?nchez *Skype: edrendar Gmail: edrendar at gmail.com MSN: ed_montesdeoca at hotmail.com Movil: 5523419886 https://linuxcounter.net/cert/549074.png -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 16803 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From med_linux at yahoo.fr Thu Aug 16 09:08:47 2012 From: med_linux at yahoo.fr (mohamed ben romdhane) Date: Thu, 16 Aug 2012 08:08:47 +0100 (BST) Subject: Defining passive checks In-Reply-To: <502BAD1D.9050903@bristol.ac.uk> References: <502BAD1D.9050903@bristol.ac.uk> Message-ID: <1345100927.79412.YahooMailNeo@web132103.mail.ird.yahoo.com> Hello Jonathan, I think that you must put define service { ? ? ? ? service_description? ? ? ? ? ? Oracle ? ? ? ? host_name? ? ? ? ? ? ? ? ? ? ? oddjob.resnet.bris.ac.uk ? ? ? ? use? ? ? ? ? ? ? ? ? ? ? ? ? ? resnet-service ??? ??? max_check_attempts??? ??? 1 ??????? check_freshness???????? 1 ??????? freshness_threshold???? 86400 ??? ??? check_command?????????? check_dummy!1 "no news since 24h" } => The check_dummy command will run if no passive check has been received within 24 hours (86400seconds) and display warnig alert (1)? and info status "no news since 24h" Regards, Mohamed ________________________________ De?: Jonathan Gazeley ??: nagios-users at lists.sourceforge.net Envoy? le : Mercredi 15 ao?t 2012 15h07 Objet?: [Nagios-users] Defining passive checks I'm a long-time user of Nagios with active checks. Today I started using passive checks with NSCA and I'm having a problem. The documentation states "A service must be defined in Nagios before you can submit passive check results for it". I defined a config block like this, to define a service for the Oracle service that I want to monitor passively - omitting the check_command directive. define service { ? ? ? ? service_description? ? ? ? ? ? Oracle ? ? ? ? host_name? ? ? ? ? ? ? ? ? ? ? oddjob.resnet.bris.ac.uk ? ? ? ? use? ? ? ? ? ? ? ? ? ? ? ? ? ? resnet-service } But running nagios -v gives this output: Error: Service description, host name, or check command is NULL Error: Could not register service (config file '/etc/nagios/nagios_service.cfg', starting on line 8618) ? ? Error processing object config files! So what's the approved way of defining a service without specifying a command for active checks? Thanks, Jonathan ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From james.osbourn at citrix.com Thu Aug 16 10:12:40 2012 From: james.osbourn at citrix.com (James Osbourn) Date: Thu, 16 Aug 2012 09:12:40 +0100 Subject: Issues with check_by_ssh In-Reply-To: References: Message-ID: <09051C7A8945F944AB7AC4E86BEB1ED5EF2F863518@LONPMAILBOX01.citrite.net> I see that you are talking to a XenServer host. I am performing something similar. What I have had to do to achieve results is to create a local Nagios user on the XenServer host which has SSH keys to allow the server Nagios user to connect and avoid using any root SSH keys which the Nagios user is unlikely to be able to read. Once you have connected to the XenServer host check that the Nagios user can execute the commands you are running. If you are simply looking at the dom0 as if it was a host and checking items such as cpu, memory or disk usage then you should not have a problem. If you are executing XenServer xe commands then you will need to pass a username and password that has access to the XenServer to run these commands. This will be root or another account that has been granted access. You can store these values in the resources.cfg file and pass them in your command definition. I have also noticed that your service definition is passing 4 arguments, where your command definition is only using 3 arguments and the hostaddress. It would be worth checking to make sure that you are passing the correct arguments from your service and command definitions to your remote host. James From: Eduardo Montes de Oca S. [mailto:edrendar at gmail.com] Sent: 15 August 2012 18:52 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Issues with check_by_ssh Hi list, I have some issues with the plugin "check_by_ssh". In particular, there is one error: When I run a shell script located in another server, from the Nagios server using the check_by_ssh plugin, I don't have any errors and I can see the result of the script, like this: root at nagioserver# /usr/lib/nagios/plugins/check_by_ssh -l root -H "ipxenserver" -C /usr/lib/nagios/plugins/check_Xencpu "OK:CPU%= 3" But, by any strange reason, when I configure the check for Nagios presents the results in its interface, I have the error: [cid:image001.png at 01CD7B8F.4994F110] I have made the ssh authorization keys in both servers (Nagios and Xen), I configured the users, permissions,etc. And I can't to do this work it. Could someone help me solve this problem???? This is a part of my definition files: #XENServer define command { command_name check_by_ssh_xentop command_line /usr/lib/nagios/plugins/check_by_ssh -l '$ARG1$' -H '$HOSTADDRESS$' -C '$ARG2$' -i '$ARG3$' } #Hypervisor check define service{ use generic-service host_name ORLANDO service_description Hypervisor CPU check_command check_by_ssh_xentop!root!ipxenserver!/usr/lib/nagios/plugins/check_Xencpu.sh!/root/.ssh/id_rsa! } Regards! -- IC. Eduardo Montes de Oca S?nchez Skype: edrendar Gmail: edrendar at gmail.com MSN: ed_montesdeoca at hotmail.com Movil: 5523419886 https://linuxcounter.net/cert/549074.png -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 22290 bytes Desc: image001.png URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From jonathan.gazeley at bristol.ac.uk Thu Aug 16 13:27:10 2012 From: jonathan.gazeley at bristol.ac.uk (Jonathan Gazeley) Date: Thu, 16 Aug 2012 12:27:10 +0100 Subject: Defining passive checks In-Reply-To: <1345100927.79412.YahooMailNeo@web132103.mail.ird.yahoo.com> References: <502BAD1D.9050903@bristol.ac.uk> <1345100927.79412.YahooMailNeo@web132103.mail.ird.yahoo.com> Message-ID: <502CD90E.3070204@bristol.ac.uk> Hi Mohamed, Thanks for your response - this worked. Have a nice day, Jonathan On 16/08/12 08:08, mohamed ben romdhane wrote: > Hello Jonathan, > > I think that you must put > define service { > service_description Oracle > host_name oddjob.resnet.bris.ac.uk > use resnet-service > max_check_attempts 1 > check_freshness 1 > freshness_threshold 86400 > check_command check_dummy!1 "no news since 24h" > } > => The check_dummy command will run if no passive check has been > received within 24 hours (86400seconds) and display warnig alert (1) > and info status "no news since 24h" > > Regards, > Mohamed > ------------------------------------------------------------------------ > *De :* Jonathan Gazeley > *? :* nagios-users at lists.sourceforge.net > *Envoy? le :* Mercredi 15 ao?t 2012 15h07 > *Objet :* [Nagios-users] Defining passive checks > > I'm a long-time user of Nagios with active checks. Today I started using > passive checks with NSCA and I'm having a problem. > > The documentation states "A service must be defined in Nagios before you > can submit passive check results for it". > > I defined a config block like this, to define a service for the Oracle > service that I want to monitor passively - omitting the check_command > directive. > > define service { > service_description Oracle > host_name oddjob.resnet.bris.ac.uk > use resnet-service > } > > > > But running nagios -v gives this output: > > Error: Service description, host name, or check command is NULL > Error: Could not register service (config file > '/etc/nagios/nagios_service.cfg', starting on line 8618) > Error processing object config files! > > > So what's the approved way of defining a service without specifying a > command for active checks? > > Thanks, > Jonathan > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From netwarrior863 at gmail.com Thu Aug 16 14:28:30 2012 From: netwarrior863 at gmail.com (Net Warrior) Date: Thu, 16 Aug 2012 09:28:30 -0300 Subject: My Own Command Deinifition Weird Behavior. Message-ID: Hi there guys. I defined my own command to use an internal sms sistems, so we can send an sms alert along with the e-mail ones. This is what the script do. #!/bin/bash HOST=$1 STATE=$2 lynx http://server:8888/SMSService/$HOST-State-$STATE The command definition is: # send-sms define command{ command_name send-sms command_line /path/sms.sh $HOSTNAME$ $SERVICESTATE$ } The problem is that with some host I receive the SERVICESTATE condition, Ok or Critical, but with others dont, only get $ As I can see on the debug file: Processed notification command: /path/sms.sh server333 CRITICAL -> This is good Processed notification command: /path/sms.sh server333 OK -> This is good But for the other servers I get: Processed notification command: /path/sms.sh server222 $SERVICESTATE$ -> Only get the variable name instead its content, ok or critical. Any idea what the problem could be? Thanks in advance. Best Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From james.osbourn at citrix.com Thu Aug 16 15:01:55 2012 From: james.osbourn at citrix.com (James Osbourn) Date: Thu, 16 Aug 2012 14:01:55 +0100 Subject: My Own Command Deinifition Weird Behavior. In-Reply-To: References: Message-ID: <09051C7A8945F944AB7AC4E86BEB1ED5EF2F8635C6@LONPMAILBOX01.citrite.net> The first thing that spring to mind is that the SMS script is being run for host alerts for which the service variable would not be defined. It may be worth checking your contact notification definitions to make sure that hosts or services are different. James From: Net Warrior [mailto:netwarrior863 at gmail.com] Sent: 16 August 2012 13:29 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] My Own Command Deinifition Weird Behavior. Hi there guys. I defined my own command to use an internal sms sistems, so we can send an sms alert along with the e-mail ones. This is what the script do. #!/bin/bash HOST=$1 STATE=$2 lynx http://server:8888/SMSService/$HOST-State-$STATE The command definition is: # send-sms define command{ command_name send-sms command_line /path/sms.sh $HOSTNAME$ $SERVICESTATE$ } The problem is that with some host I receive the SERVICESTATE condition, Ok or Critical, but with others dont, only get $ As I can see on the debug file: Processed notification command: /path/sms.sh server333 CRITICAL -> This is good Processed notification command: /path/sms.sh server333 OK -> This is good But for the other servers I get: Processed notification command: /path/sms.sh server222 $SERVICESTATE$ -> Only get the variable name instead its content, ok or critical. Any idea what the problem could be? Thanks in advance. Best Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From med_linux at yahoo.fr Thu Aug 16 15:12:00 2012 From: med_linux at yahoo.fr (mohamed ben romdhane) Date: Thu, 16 Aug 2012 14:12:00 +0100 (BST) Subject: My Own Command Deinifition Weird Behavior. In-Reply-To: References: Message-ID: <1345122720.87262.YahooMailNeo@web132104.mail.ird.yahoo.com> Hi, try to use the attribute? $SERVICESTATEID$? (A number that corresponds to the current state of the service: 0=OK, 1=WARNING, 2=CRITICAL, 3=UNKNOWN.) Best regards, Mohamed ________________________________ De?: Net Warrior ??: nagios-users at lists.sourceforge.net Envoy? le : Jeudi 16 ao?t 2012 13h28 Objet?: [Nagios-users] My Own Command Deinifition Weird Behavior. Hi there guys. I defined my own command to use an internal sms sistems, so we can send an sms alert along with the e-mail ones. This is what the script do. #!/bin/bash HOST=$1 STATE=$2 lynx http://server:8888/SMSService/$HOST-State-$STATE The command definition is: # send-sms define command{ ?????? command_name?? send-sms ?????? command_line???? /path/sms.sh $HOSTNAME$ $SERVICESTATE$ ?????? } The problem is that with some host I receive the SERVICESTATE condition, Ok or Critical, but with others dont, only get $ As I can see on the debug file: Processed notification command: /path/sms.sh server333 CRITICAL -> This is good Processed notification command: /path/sms.sh server333 OK? -> This is good But for the other servers I get: Processed notification command: /path/sms.sh server222 $SERVICESTATE$ -> Only get the variable name instead its content, ok or critical. Any idea what the problem could be? Thanks in advance. Best Regards ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From netwarrior863 at gmail.com Thu Aug 16 15:30:07 2012 From: netwarrior863 at gmail.com (Net Warrior) Date: Thu, 16 Aug 2012 10:30:07 -0300 Subject: My Own Command Deinifition Weird Behavior. In-Reply-To: <1345122720.87262.YahooMailNeo@web132104.mail.ird.yahoo.com> References: <1345122720.87262.YahooMailNeo@web132104.mail.ird.yahoo.com> Message-ID: Yes, you are right, after I fired the mail to the list, I checked that, my appologies, I notice that host uses HOSTSTATE and service uses SERVICESTATE, I changed that and defined two commands instead, gonna see if that fix the problem service_notification_commands send-sms-service,notify-service-by-email host_notification_commands send-sms-host,notify-host-by-email command_line /path/sms.sh $HOSTNAME$ $HOSTSTATE$ command_line /path/sms.sh $HOSTNAME$ $SERVICESTATE$ Thank you vey much, sorry for the noise. Best regards 2012/8/16 mohamed ben romdhane > Hi, > try to use the attribute $SERVICESTATEID$ (A number that corresponds to > the current state of the service: 0=OK, 1=WARNING, 2=CRITICAL, 3=UNKNOWN.) > > Best regards, > Mohamed > ------------------------------ > *De :* Net Warrior > *? :* nagios-users at lists.sourceforge.net > *Envoy? le :* Jeudi 16 ao?t 2012 13h28 > *Objet :* [Nagios-users] My Own Command Deinifition Weird Behavior. > > Hi there guys. > > I defined my own command to use an internal sms sistems, so we can send an > sms alert along with the e-mail ones. > This is what the script do. > #!/bin/bash > > HOST=$1 > STATE=$2 > lynx http://server:8888/SMSService/$HOST-State-$STATE > > The command definition is: > > # send-sms > define command{ > command_name send-sms > command_line /path/sms.sh $HOSTNAME$ $SERVICESTATE$ > } > > The problem is that with some host I receive the SERVICESTATE condition, > Ok or Critical, but with others dont, only get $ > As I can see on the debug file: > > Processed notification command: /path/sms.sh server333 CRITICAL -> This is > good > Processed notification command: /path/sms.sh server333 OK -> This is good > > But for the other servers I get: > > Processed notification command: /path/sms.sh server222 $SERVICESTATE$ -> > Only get the variable name instead its content, ok or critical. > > Any idea what the problem could be? > > Thanks in advance. > Best Regards > > > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From arnold.holzel at kpn.com Thu Aug 16 17:00:15 2012 From: arnold.holzel at kpn.com (=?iso-8859-1?Q?H=F6lzel=2C_Arnold?=) Date: Thu, 16 Aug 2012 17:00:15 +0200 Subject: check_openmanage and ESXi Message-ID: <5C3B1FF1E973554BBB7B81A652A779860192973848@EXCNLDCM06.europe.unity> All, I don't know if anyone else already posted this, I just joined the mail list. We have been using check_openmanage (brilliant piece of work!) to check the hardware status of our Dell machines, lately we are moving from ESX 4 to ESXi 5 and found that the check_openmanage check could not help us with the monitoring of ESXi 5 hardware, because check_openmanage needs OMSA for its checks. Today I found a other plugin to check ESXi hardware, see http://www.claudiokuenzler.com/nagios-plugins/check_esxi_hardware.php There is one disadvantage to this plugin and that is that you always get the same status details back with a OK. I don't know if it is possible but it would be nice to have the checks from the check_esxi_hardware available in the check_openmanage, only problem is one is written in Python the other in Perl... I hope it helps and that maybe someone (Trond the author of check_openmanage?) can create one check of this. Met vriendelijke groet/with kind regards, Arnold H?lzel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From phil.randal at hoopleltd.co.uk Thu Aug 16 18:14:46 2012 From: phil.randal at hoopleltd.co.uk (Randal, Phil) Date: Thu, 16 Aug 2012 16:14:46 +0000 Subject: check_openmanage and ESXi In-Reply-To: <5C3B1FF1E973554BBB7B81A652A779860192973848@EXCNLDCM06.europe.unity> References: <5C3B1FF1E973554BBB7B81A652A779860192973848@EXCNLDCM06.europe.unity> Message-ID: <7CA580B59C1ABD45B4614ED90D4C7B853D3E529E@HC-EXMBX03.herefordshire.gov.uk> You get more reported back from check_esxi_hardware.py if the check detects any error conditions. I did a lot of work on this last year, see my blog post about it for example output when things don't work: http://www.rebee.clara.net/blog/archives/2011/04/entry_185.html Cheers, Phil -- Phil Randal Infrastructure Engineer Hoople Ltd | Thorn Office Centre | Hereford HR2 6JT Tel: 01432 260415 | Email: phil.randal at hoopleltd.co.uk From: H?lzel, Arnold [mailto:arnold.holzel at kpn.com] Sent: 16 August 2012 16:00 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_openmanage and ESXi All, I don't know if anyone else already posted this, I just joined the mail list. We have been using check_openmanage (brilliant piece of work!) to check the hardware status of our Dell machines, lately we are moving from ESX 4 to ESXi 5 and found that the check_openmanage check could not help us with the monitoring of ESXi 5 hardware, because check_openmanage needs OMSA for its checks. Today I found a other plugin to check ESXi hardware, see http://www.claudiokuenzler.com/nagios-plugins/check_esxi_hardware.php There is one disadvantage to this plugin and that is that you always get the same status details back with a OK. I don't know if it is possible but it would be nice to have the checks from the check_esxi_hardware available in the check_openmanage, only problem is one is written in Python the other in Perl... I hope it helps and that maybe someone (Trond the author of check_openmanage?) can create one check of this. Met vriendelijke groet/with kind regards, Arnold H?lzel "Any opinion expressed in this e-mail or any attached files are those of the individual and not necessarily those of Hoople Ltd. You should be aware that Hoople Ltd. monitors its email service. This e-mail and any attached files are confidential and intended solely for the use of the addressee. This communication may contain material protected by law from being passed on. If you are not the intended recipient and have received this e-mail in error, you are advised that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. If you have received this e-mail in error please contact the sender immediately and destroy all copies of it. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From ck at claudiokuenzler.com Fri Aug 17 08:00:14 2012 From: ck at claudiokuenzler.com (Claudio Kuenzler) Date: Fri, 17 Aug 2012 08:00:14 +0200 Subject: check_openmanage and ESXi In-Reply-To: <7CA580B59C1ABD45B4614ED90D4C7B853D3E529E@HC-EXMBX03.herefordshire.gov.uk> References: <5C3B1FF1E973554BBB7B81A652A779860192973848@EXCNLDCM06.europe.unity> <7CA580B59C1ABD45B4614ED90D4C7B853D3E529E@HC-EXMBX03.herefordshire.gov.uk> Message-ID: http://exchange.nagios.org/directory/Plugins/Operating-Systems/%2A-Virtual-Environments/VMWare/check_esxi_hardware-2Epy/details On Thu, Aug 16, 2012 at 6:14 PM, Randal, Phil wrote: > You get more reported back from check_esxi_hardware.py if the check > detects any error conditions. > > > > I did a lot of work on this last year, see my blog post about it for > example output when things don?t work: > > > > http://www.rebee.clara.net/blog/archives/2011/04/entry_185.html > > > > Cheers, > > > > Phil > > > > -- > > *Phil Randal* > > *Infrastructure Engineer* > *Hoople Ltd | Thorn Office Centre | Hereford HR2 6JT* > > Tel: 01432 260415 | Email: phil.randal at hoopleltd.co.uk > > > > *From:* H?lzel, Arnold [mailto:arnold.holzel at kpn.com] > *Sent:* 16 August 2012 16:00 > *To:* nagios-users at lists.sourceforge.net > *Subject:* [Nagios-users] check_openmanage and ESXi > > > > All, > > > > I don?t know if anyone else already posted this, I just joined the mail > list. > > > > We have been using check_openmanage (brilliant piece of work!) to check > the hardware status of our Dell machines, lately we are moving from ESX 4 > to ESXi 5 and found that the check_openmanage check could not help us with > the monitoring of ESXi 5 hardware, because check_openmanage needs OMSA for > its checks. Today I found a other plugin to check ESXi hardware, see > http://www.claudiokuenzler.com/nagios-plugins/check_esxi_hardware.php > > > > There is one disadvantage to this plugin and that is that you always get > the same status details back with a OK. I don?t know if it is possible but > it would be nice to have the checks from the check_esxi_hardware available > in the check_openmanage, only problem is one is written in Python the other > in Perl? > > > > I hope it helps and that maybe someone (Trond the author of > check_openmanage?) can create one check of this. > > *Met vriendelijke groet/with kind regards,* > > Arnold H?lzel > > > ?Any opinion expressed in this e-mail or any attached files are those of > the individual and not necessarily those of Hoople Ltd. You should be aware > that Hoople Ltd. monitors its email service. This e-mail and any attached > files are confidential and intended solely for the use of the addressee. > This communication may contain material protected by law from being passed > on. If you are not the intended recipient and have received this e-mail in > error, you are advised that any use, dissemination, forwarding, printing or > copying of this e-mail is strictly prohibited. If you have received this > e-mail in error please contact the sender immediately and destroy all > copies of it. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From lilogohard at gmail.com Fri Aug 17 09:41:21 2012 From: lilogohard at gmail.com (Luo Li) Date: Fri, 17 Aug 2012 15:41:21 +0800 Subject: Question beyond make on Solaris 9 : isblank-ld: fatal: Message-ID: Hi,everybody! My question is I'm going to compiling nrpe on my solaris box 9,it occured some erroes: root at ebackup # /Solaris/make-3.82/make all cd ./src/; /Solaris/make-3.82/make ; cd .. make[1]: Entering directory `/Solaris/nrpe-2.13/src' gcc -g -O2 -I/usr/local/ssl/include/openssl -I/usr/local/ssl/include -DHAVE_CONFIG_H -c -o snprintf.o snprintf.c gcc -g -O2 -I/usr/local/ssl/include/openssl -I/usr/local/ssl/include -DHAVE_CONFIG_H -o nrpe nrpe.c utils.c acl.c -L/usr/local/ssl/lib -lssl -lcrypto -lnsl -lsocket -lwrap ./snprintf.o -liberty acl.c: In function `parse_allowed_hosts': acl.c:418: warning: assignment makes pointer from integer without a cast acl.c:428: warning: assignment makes pointer from integer without a cast Undefined first referenced symbol in file isblank /var/tmp//ccT84dbE.o ld: fatal: Symbol referencing errors. No output written to nrpe collect2: ld returned 1 exit status make[1]: *** [nrpe] Error 1 make[1]: Leaving directory `/Solaris/nrpe-2.13/src' my configure commandis: ./configure --with-ssl=/usr/local/ssl/lib --with-ssl-lib=/usr/sfw/lib --prefix=/usr/local/nagios And the make is download from the GNU website and commpiled. root at ebackup # make --version GNU Make 3.82 Built for sparc-sun-solaris2.9 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. My NRPE version is:nrpe-2.13 And the lasted is,I refer the blog: http://utahsysadmin.com/2008/03/14/configuring-nagios-plugins-nrpe-on-solaris-10/to modify the NRPE code. Thanks all?Forgive my poor English! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From bdmeyer at cio.sc.gov Fri Aug 17 17:16:42 2012 From: bdmeyer at cio.sc.gov (Meyer, Bruce) Date: Fri, 17 Aug 2012 11:16:42 -0400 Subject: Error compiling Nagios 3 on CentOS 6.2 minimal Message-ID: Using CentOS 6.2 (minimal) Nagios-3.4.1.tar.gz Running: ./configure --sysconfdir=/etc/nagios --localstatedir=/var/nagios --with-command-group=nagcmd --enable-embedded-perl ... *** Configuration summary for nagios 3.4.1 05-11-2012 ***: General Options: ------------------------- Nagios executable: nagios Nagios user/group: nagios,nagios Command user/group: nagios,nagcmd Embedded Perl: yes, with caching Event Broker: yes Install ${prefix}: /usr/local/nagios Lock file: /var/nagios/nagios.lock Check result directory: /var/nagios/spool/checkresults Init directory: /etc/rc.d/init.d Apache conf.d directory: /etc/httpd/conf.d Mail program: /bin/mail Host OS: linux-gnu Web Interface Options: ------------------------ HTML URL: http://localhost/nagios/ CGI URL: http://localhost/nagios/cgi-bin/ Traceroute (used by WAP): Review the options above for accuracy. If they look okay, type 'make all' to compile the main program and CGIs. make all cd ./base && make make[1]: Entering directory `/usr/local/src/nagios/base' gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o checks.o checks.c In file included from checks.c:41: ../include/epn_nagios.h:11:20: error: EXTERN.h: No such file or directory ../include/epn_nagios.h:12:18: error: perl.h: No such file or directory ( Inserting locate results: [root at sonar nagios]# locate EXTERN.h perl.h /usr/lib64/perl5/CORE/EXTERN.h /usr/lib64/perl5/CORE/perl.h ) In file included from checks.c:41: ../include/epn_nagios.h:31: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?void? checks.c: In function ?run_async_service_check?: checks.c:355: error: ?SV? undeclared (first use in this function) checks.c:355: error: (Each undeclared identifier is reported only once checks.c:355: error: for each function it appears in.) checks.c:355: error: ?plugin_hndlr_cr? undeclared (first use in this function) checks.c:361: error: ?dSP? undeclared (first use in this function) checks.c:557: error: ?ENTER? undeclared (first use in this function) checks.c:558: error: ?SAVETMPS? undeclared (first use in this function) checks.c:559: warning: implicit declaration of function ?PUSHMARK? checks.c:559: error: ?SP? undeclared (first use in this function) checks.c:560: warning: implicit declaration of function ?XPUSHs? checks.c:560: warning: implicit declaration of function ?sv_2mortal? checks.c:560: warning: implicit declaration of function ?newSVpv? checks.c:564: error: ?PUTBACK? undeclared (first use in this function) checks.c:568: warning: implicit declaration of function ?call_pv? checks.c:568: error: ?G_SCALAR? undeclared (first use in this function) checks.c:568: error: ?G_EVAL? undeclared (first use in this function) checks.c:570: error: ?SPAGAIN? undeclared (first use in this function) checks.c:572: warning: implicit declaration of function ?SvTRUE? checks.c:572: error: ?ERRSV? undeclared (first use in this function) checks.c:581: error: ?POPs? undeclared (first use in this function) checks.c:584: warning: implicit declaration of function ?SvPVX? checks.c:629: warning: implicit declaration of function ?newSVsv? checks.c:634: error: ?FREETMPS? undeclared (first use in this function) checks.c:635: error: ?LEAVE? undeclared (first use in this function) checks.c:713: error: ?G_ARRAY? undeclared (first use in this function) checks.c:717: error: ?POPpx? undeclared (first use in this function) checks.c:718: error: ?POPi? undeclared (first use in this function) make[1]: *** [checks.o] Error 1 make[1]: Leaving directory `/usr/local/src/nagios/base' make: *** [all] Error 2 [root at sonar nagios]# Does anyone know what I might do to fix this? I haven't turned up anything in google All help is appreciated. -= Bruce ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From bdmeyer at cio.sc.gov Fri Aug 17 18:16:29 2012 From: bdmeyer at cio.sc.gov (Meyer, Bruce) Date: Fri, 17 Aug 2012 12:16:29 -0400 Subject: Error compiling Nagios 3 on CentOS 6.2 minimal In-Reply-To: References: Message-ID: My co-worker (Thanks Frank) Recommended I put a symlink to those two errant files. I did, and it compiled. For anyone that reads this in the future, in case a better fix isn't offered, here is what I did: I switched to: /usr/lib/ Created "/perl5/CORE" So I have the path: /usr/lib/perl5/CORE I cd into it, and issue: ln -s /usr/lib64/perl5/CORE/perl.h ln -s /usr/lib64/perl5/CORE/EXTERN.h No errors (at least at this point!) -= Bruce On 8/17/12 11:16 AM, "Meyer, Bruce" wrote: >Using CentOS 6.2 (minimal) >Nagios-3.4.1.tar.gz >Running: > >./configure --sysconfdir=/etc/nagios --localstatedir=/var/nagios >--with-command-group=nagcmd --enable-embedded-perl > > >... > >*** Configuration summary for nagios 3.4.1 05-11-2012 ***: > > General Options: > ------------------------- > Nagios executable: nagios > Nagios user/group: nagios,nagios > Command user/group: nagios,nagcmd > Embedded Perl: yes, with caching > Event Broker: yes > Install ${prefix}: /usr/local/nagios > Lock file: /var/nagios/nagios.lock > Check result directory: /var/nagios/spool/checkresults > Init directory: /etc/rc.d/init.d > Apache conf.d directory: /etc/httpd/conf.d > Mail program: /bin/mail > Host OS: linux-gnu > > Web Interface Options: > ------------------------ > HTML URL: http://localhost/nagios/ > CGI URL: http://localhost/nagios/cgi-bin/ > Traceroute (used by WAP): > > >Review the options above for accuracy. If they look okay, >type 'make all' to compile the main program and CGIs. > >make all >cd ./base && make >make[1]: Entering directory `/usr/local/src/nagios/base' >gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o checks.o checks.c >In file included from checks.c:41: >../include/epn_nagios.h:11:20: error: EXTERN.h: No such file or directory >../include/epn_nagios.h:12:18: error: perl.h: No such file or directory > >( Inserting locate results: >[root at sonar nagios]# locate EXTERN.h perl.h >/usr/lib64/perl5/CORE/EXTERN.h >/usr/lib64/perl5/CORE/perl.h >) > > > >In file included from checks.c:41: >../include/epn_nagios.h:31: error: expected ?=?, ?,?, ?;?, ?asm? or >?__attribute__? before ?void? >checks.c: In function ?run_async_service_check?: >checks.c:355: error: ?SV? undeclared (first use in this function) >checks.c:355: error: (Each undeclared identifier is reported only once >checks.c:355: error: for each function it appears in.) >checks.c:355: error: ?plugin_hndlr_cr? undeclared (first use in this >function) >checks.c:361: error: ?dSP? undeclared (first use in this function) >checks.c:557: error: ?ENTER? undeclared (first use in this function) >checks.c:558: error: ?SAVETMPS? undeclared (first use in this function) >checks.c:559: warning: implicit declaration of function ?PUSHMARK? >checks.c:559: error: ?SP? undeclared (first use in this function) >checks.c:560: warning: implicit declaration of function ?XPUSHs? >checks.c:560: warning: implicit declaration of function ?sv_2mortal? >checks.c:560: warning: implicit declaration of function ?newSVpv? >checks.c:564: error: ?PUTBACK? undeclared (first use in this function) >checks.c:568: warning: implicit declaration of function ?call_pv? >checks.c:568: error: ?G_SCALAR? undeclared (first use in this function) >checks.c:568: error: ?G_EVAL? undeclared (first use in this function) >checks.c:570: error: ?SPAGAIN? undeclared (first use in this function) >checks.c:572: warning: implicit declaration of function ?SvTRUE? >checks.c:572: error: ?ERRSV? undeclared (first use in this function) >checks.c:581: error: ?POPs? undeclared (first use in this function) >checks.c:584: warning: implicit declaration of function ?SvPVX? >checks.c:629: warning: implicit declaration of function ?newSVsv? >checks.c:634: error: ?FREETMPS? undeclared (first use in this function) >checks.c:635: error: ?LEAVE? undeclared (first use in this function) >checks.c:713: error: ?G_ARRAY? undeclared (first use in this function) >checks.c:717: error: ?POPpx? undeclared (first use in this function) >checks.c:718: error: ?POPi? undeclared (first use in this function) >make[1]: *** [checks.o] Error 1 >make[1]: Leaving directory `/usr/local/src/nagios/base' >make: *** [all] Error 2 >[root at sonar nagios]# > > > >Does anyone know what I might do to fix this? I haven't turned up anything >in google > >All help is appreciated. > >-= Bruce > > > > > > > > >-------------------------------------------------------------------------- >---- >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >Nagios-users mailing list >Nagios-users at 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From edrendar at gmail.com Fri Aug 17 19:50:40 2012 From: edrendar at gmail.com (Eduardo Montes de Oca S.) Date: Fri, 17 Aug 2012 12:50:40 -0500 Subject: Issues with check_by_ssh In-Reply-To: <09051C7A8945F944AB7AC4E86BEB1ED5EF2F863518@LONPMAILBOX01.citrite.net> References: <09051C7A8945F944AB7AC4E86BEB1ED5EF2F863518@LONPMAILBOX01.citrite.net> Message-ID: Hi James, Excuse me for answering so far! It's correct, I'm doing these checks for a Xenserver host; In fact, these checks are for several Citrix Xenservers (more than 30). That you wrote in the first paragraph, already did. I created a local Nagios user on the Xenserver host with its ssh keys and on the Nagios server in the same way: ############### ##Nagios server## ############### *root at nagioserver:~# cat /etc/passwd | grep -i nagios* *nagios:x:106:116::/var/lib/nagios:/bin/bash* * * *nagios at nagioserver:~/.ssh$ ls -l* *-rw-r--r-- 1 nagios nagios 399 2012-08-14 12:37 authorized_keys* *-rw------- 1 nagios nagios 1675 2012-08-14 11:11 id_rsa* *-rw-r--r-- 1 nagios nagios 402 2012-08-14 11:11 id_rsa.pub* *-rw-r--r-- 1 nagios nagios 442 2012-08-14 11:08 known_hosts* ############### ##XENSERVER## ############### *[root at ORL-XEN-02 ~]# cat /etc/passwd | grep -i nagi* *nagios:$1$vBr1twsi$6AL.hoMnGK8T1WgZ0.Ov2/:500:500::/home/nagios:/bin/bash* * * *[nagios at ORL-XEN-02 .ssh]$ ls -l* *-rw------- 1 nagios nagios 402 Aug 14 12:51 authorized_keys* *-rw------- 1 nagios nagios 1671 Aug 14 12:57 id_rsa* *-rw-r--r-- 1 nagios nagios 399 Aug 14 12:57 id_rsa.pub* *-rw-r--r-- 1 nagios nagios 788 Aug 14 13:00 known_hosts* Also I use the "xentop" command to get the CPU results in my script, but I had to set the sudoers file in the Xenserver because the "xentop" command only root is be able to execute it. This is the script and sudoers file. *#!/bin/bash* *CRITICAL_CPU='95'* *WARNING_CPU='80'* * * *#Porcentage de CPU en uso* *cpu_stat=$(sudo /usr/sbin/xentop -bi2 | grep Domain-0 | awk '{print $4}' | tail -1 | cut -d '.' -f1)* *#cpu_stat='80'* * * *#Evaluamos estado* *if [ $cpu_stat -ge $CRITICAL_CPU ] ; then* *echo ?CRITICAL:CPU%= $cpu_stat?* *exit 2* *elif [ $cpu_stat -ge $WARNING_CPU ] ; then* *echo ?WARNING: CPU%= $cpu_stat?* *exit 1* *else* *echo ?OK:CPU%= $cpu_stat?* *exit 0* *fi* ###################################################### *## Allow root to run any commands anywhere* *root ALL=(ALL) ALL* *nagios ALL=(ALL) NOPASSWD:ALL* * * * * By the terminal, all works fine: >From Nagios server * * *nagios at nagioserver:~$ /usr/lib/nagios/plugins/check_by_ssh -l nagios -H 172.16.31.2 -C "/usr/lib/nagios/plugins/check_Xencpu" -i /var/lib/nagios/.ssh/id_rsa* *?OK:CPU%= 3?* >From Xenserver *[nagios at ORL-XEN-02 plugins]$ ./check_Xencpu * *?OK:CPU%= 5?* In your second paragraph, What did you want to say with the resource.cfg? Do you have an example? I don't understand very well. Finally, the service definition is passing 4 arguments as the command definition. *command_line /usr/lib/nagios/plugins/check_by_ssh (1)-l '$ARG1$' (2)-H '$HOSTADDRESS$' (3)-C '$ARG2$' (4)-i '$ARG3$'* *check_command check_by_ssh_xentop!(1)root!(2)ipxenserver!(3)/usr/lib/nagios/plugins/check_Xencpu.sh!(4)/root/.ssh/id_rsa! * * * Help me!!! LOL xD Eduardo 2012/8/16 James Osbourn > I see that you are talking to a XenServer host. I am performing something > similar. What I have had to do to achieve results is to create a local > Nagios user on the XenServer host which has SSH keys to allow the server > Nagios user to connect and avoid using any root SSH keys which the Nagios > user is unlikely to be able to read.**** > > ** ** > > Once you have connected to the XenServer host check that the Nagios user > can execute the commands you are running. If you are simply looking at the > dom0 as if it was a host and checking items such as cpu, memory or disk > usage then you should not have a problem. If you are executing XenServer > xe commands then you will need to pass a username and password that has > access to the XenServer to run these commands. This will be root or > another account that has been granted access. You can store these values > in the resources.cfg file and pass them in your command definition.**** > > ** ** > > I have also noticed that your service definition is passing 4 arguments, > where your command definition is only using 3 arguments and the > hostaddress. It would be worth checking to make sure that you are passing > the correct arguments from your service and command definitions to your > remote host.**** > > ** ** > > James**** > > ** ** > > *From:* Eduardo Montes de Oca S. [mailto:edrendar at gmail.com] > *Sent:* 15 August 2012 18:52 > > *To:* nagios-users at lists.sourceforge.net > *Subject:* [Nagios-users] Issues with check_by_ssh**** > > ** ** > > Hi list,**** > > ** ** > > I have some issues with the plugin "check_by_ssh". In particular, there is > one error:**** > > ** ** > > When I run a shell script located in another server, from the Nagios > server using the check_by_ssh plugin, I don't have any errors and I can see > the result of the script, like this:**** > > ** ** > > *root at nagioserver# ** /usr/lib/nagios/plugins/check_by_ssh > -l root -H "ipxenserver" -C /usr/lib/nagios/plugins/check_Xencpu > ?OK:CPU%= 3?***** > > ** ** > > But, by any strange reason, when I configure the check for Nagios presents > the results in its interface, I have the error:**** > > [image: Im?genes integradas 1]**** > > ** ** > > I have made the ssh authorization keys in both servers (Nagios and Xen), I > configured the users, permissions,etc. And I can't to do this work it.**** > > ** ** > > Could someone help me solve this problem????**** > > ** ** > > ** ** > > This is a part of my definition files:**** > > *#XENServer* > > *define command {* > > * command_name check_by_ssh_xentop* > > * command_line /usr/lib/nagios/plugins/check_by_ssh -l > '$ARG1$' -H '$HOSTADDRESS$' -C '$ARG2$' -i '$ARG3$'* > > * }* > > *#Hypervisor check***** > > * define service{***** > > * use generic-service***** > > * host_name ORLANDO ***** > > * service_description Hypervisor CPU***** > > * check_command > check_by_ssh_xentop!root!ipxenserver!/usr/lib/nagios/plugins/check_Xencpu.sh!/root/.ssh/id_rsa! > ***** > > * }***** > > ** ** > > ** ** > > ** ** > > ** ** > > Regards!**** > > ** ** > > ** ** > > -- **** > > *IC.** Eduardo Montes de Oca S?nchez > *Skype: edrendar > Gmail: edrendar at gmail.com > MSN: ed_montesdeoca at hotmail.com > Movil: 5523419886**** > > https://linuxcounter.net/cert/549074.png**** > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -- *IC.** Eduardo Montes de Oca S?nchez *Skype: edrendar Gmail: edrendar at gmail.com MSN: ed_montesdeoca at hotmail.com Movil: 5523419886 https://linuxcounter.net/cert/549074.png -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 22290 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From ae at op5.se Mon Aug 20 09:36:03 2012 From: ae at op5.se (Andreas Ericsson) Date: Mon, 20 Aug 2012 09:36:03 +0200 Subject: Error compiling Nagios 3 on CentOS 6.2 minimal In-Reply-To: References: Message-ID: <5031E8E3.20407@op5.se> On 08/17/2012 05:16 PM, Meyer, Bruce wrote: > Using CentOS 6.2 (minimal) > Nagios-3.4.1.tar.gz > Running: > > ./configure --sysconfdir=/etc/nagios --localstatedir=/var/nagios > --with-command-group=nagcmd --enable-embedded-perl > You'll want to stop using embedded perl. It's been removed from Nagios 4, which still masquerades as Nagios 3.4.1 (although not in the tarball) and shouldn't be used if you want your Nagios installation stable and without memory leaks. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From james.osbourn at citrix.com Mon Aug 20 11:00:20 2012 From: james.osbourn at citrix.com (James Osbourn) Date: Mon, 20 Aug 2012 10:00:20 +0100 Subject: Issues with check_by_ssh In-Reply-To: References: <09051C7A8945F944AB7AC4E86BEB1ED5EF2F863518@LONPMAILBOX01.citrite.net> Message-ID: <09051C7A8945F944AB7AC4E86BEB1ED5EF2FE1816B@LONPMAILBOX01.citrite.net> Looking at your command from your terminal example and then looking at your command_line from your Nagios definition and your check_command statement the fields all seems to be backwards The things that I can see are - Your Nagios configuration is using the root account to connect to the server and your command line definition is using Nagios - Your command_line is being passwd 'ipxenserver' as the remote command to execute - You command_line is being passwd your remote command as the ssh key to use. - You have a trailing ! in your check_command definition which we create a variable with no value I think your command definition and need to be updated, something like this define command{ command_name check_xen_cpu command_line $USER1$/check_by_ssh -l $ARG1$ H $HOSTADDRESS$ -C $ARG2$ -I $ARG3$ } define service { service_description XenServer CPU Load host_name ORL-XEN-02 check_command check_by_ssh_xentop!nagios! /usr/lib/nagios/plugins/check_Xencpu.sh! /root/.ssh/id_rsa } James >From Nagios server nagios at nagioserver:~$ /usr/lib/nagios/plugins/check_by_ssh -l nagios -H 172.16.31.2 -C "/usr/lib/nagios/plugins/check_Xencpu" -i /var/lib/nagios/.ssh/id_rsa "OK:CPU%= 3" command_line /usr/lib/nagios/plugins/check_by_ssh (1)-l '$ARG1$' (2)-H '$HOSTADDRESS$' (3)-C '$ARG2$' (4)-i '$ARG3$' check_command check_by_ssh_xentop!(1)root!(2)ipxenserver!(3)/usr/lib/nagios/plugins/check_Xencpu.sh!(4)/root/.ssh/id_rsa! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Sven.Nierlein at consol.de Mon Aug 20 11:22:57 2012 From: Sven.Nierlein at consol.de (Sven Nierlein) Date: Mon, 20 Aug 2012 11:22:57 +0200 Subject: Error compiling Nagios 3 on CentOS 6.2 minimal In-Reply-To: <5031E8E3.20407@op5.se> References: <5031E8E3.20407@op5.se> Message-ID: <503201F1.5030408@consol.de> On 8/20/12 9:36, Andreas Ericsson wrote: > On 08/17/2012 05:16 PM, Meyer, Bruce wrote: >> Using CentOS 6.2 (minimal) >> Nagios-3.4.1.tar.gz >> Running: >> >> ./configure --sysconfdir=/etc/nagios --localstatedir=/var/nagios >> --with-command-group=nagcmd --enable-embedded-perl >> > You'll want to stop using embedded perl. It's been removed from Nagios 4, > which still masquerades as Nagios 3.4.1 (although not in the tarball) and > shouldn't be used if you want your Nagios installation stable and without > memory leaks. > You might want to have a look at Mod-Gearman, which adds embedded perl again which is a really huge performance gain when using lots of perl plugins. So when running into performance problems, this might be worth a look. Sven ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From bdmeyer at cio.sc.gov Mon Aug 20 15:30:44 2012 From: bdmeyer at cio.sc.gov (Meyer, Bruce) Date: Mon, 20 Aug 2012 09:30:44 -0400 Subject: Error compiling Nagios 3 on CentOS 6.2 minimal In-Reply-To: <503201F1.5030408@consol.de> References: <503201F1.5030408@consol.de> Message-ID: Andreas and Sven, Thank-you for your guidance. Since I am just now starting the install, I think I will recompile and remove embedded-perl. I am following the "Nagios: System and Network Monitoring 2nd Edition by Wolfgang Barth." -= Bruce On 8/20/12 5:22 AM, "Sven Nierlein" wrote: >On 8/20/12 9:36, Andreas Ericsson wrote: >> On 08/17/2012 05:16 PM, Meyer, Bruce wrote: >>> Using CentOS 6.2 (minimal) >>> Nagios-3.4.1.tar.gz >>> Running: >>> >>> ./configure --sysconfdir=/etc/nagios --localstatedir=/var/nagios >>> --with-command-group=nagcmd --enable-embedded-perl >>> >> You'll want to stop using embedded perl. It's been removed from Nagios >>4, >> which still masquerades as Nagios 3.4.1 (although not in the tarball) >>and >> shouldn't be used if you want your Nagios installation stable and >>without >> memory leaks. >> > >You might want to have a look at Mod-Gearman, which adds embedded perl >again which >is a really huge performance gain when using lots of perl plugins. So >when running into >performance problems, this might be worth a look. > > Sven > >-------------------------------------------------------------------------- >---- >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >Nagios-users mailing list >Nagios-users at 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From annie.cordier at atos.net Mon Aug 20 17:01:45 2012 From: annie.cordier at atos.net (CORDIER Annie) Date: Mon, 20 Aug 2012 15:01:45 +0000 Subject: check_jabber plugins Message-ID: Hello I've downloaded the nagios plugins version 1.4.16, I've run configure, make all and make install. But I still don't find the check_jabber plugins. What did I miss ? Regards annie ________________________________ Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage exclusif de ses destinataires. Il peut ?galement ?tre prot?g? par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir imm?diatement l'exp?diteur et de le d?truire. L'int?grit? du message ne pouvant ?tre assur?e sur Internet, la responsabilit? du groupe Atos ne pourra ?tre engag?e quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'exp?diteur ne donne aucune garantie ? cet ?gard et sa responsabilit? ne saurait ?tre engag?e pour tout dommage r?sultant d'un virus transmis. This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos group liability cannot be triggered for the message content. Although the sender endeavors to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From agriffin at nagios.com Mon Aug 20 19:11:28 2012 From: agriffin at nagios.com (Alex Griffin) Date: Mon, 20 Aug 2012 12:11:28 -0500 Subject: check_jabber plugins In-Reply-To: References: Message-ID: <50326FC0.1040809@nagios.com> How did you install Nagios? By default, 'make install' will put the plugins in /usr/local/nagios/libexec, which is the correct location for source installs. However, if you installed from a package you will probably need to put them somewhere else, like /usr/lib/nagios/plugins for example. Alex Griffin --- Tech Team agriffin at nagios.com CORDIER Annie wrote: > Hello > > I?ve downloaded the nagios plugins version 1.4.16, I?ve run configure, > make all and make install. > > But I still don?t find the check_jabber plugins. What did I miss ? > > Regards > > annie > > ------------------------------------------------------------------------ > > Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? > l'usage exclusif de ses destinataires. Il peut ?galement ?tre prot?g? > par le secret professionnel. Si vous recevez ce message par erreur, > merci d'en avertir imm?diatement l'exp?diteur et de le d?truire. > L'int?grit? du message ne pouvant ?tre assur?e sur Internet, la > responsabilit? du groupe Atos ne pourra ?tre engag?e quant au contenu de > ce message. Bien que les meilleurs efforts soient faits pour maintenir > cette transmission exempte de tout virus, l'exp?diteur ne donne aucune > garantie ? cet ?gard et sa responsabilit? ne saurait ?tre engag?e pour > tout dommage r?sultant d'un virus transmis. > > This e-mail and the documents attached are confidential and intended > solely for the addressee; it may also be privileged. If you receive this > e-mail in error, please notify the sender immediately and destroy it. As > its integrity cannot be secured on the Internet, the Atos group > liability cannot be triggered for the message content. Although the > sender endeavors to maintain a computer virus-free network, the sender > does not warrant that this transmission is virus-free and will not be > liable for any damages resulting from any virus transmitted. > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From t-aravinth at juspay.in Wed Aug 22 09:43:06 2012 From: t-aravinth at juspay.in (Aravinth Anto Intern) Date: Wed, 22 Aug 2012 13:13:06 +0530 Subject: How to set up sending alerts? Message-ID: Hi all, I'm very new to nagios. I followed this blog to set up the smtp server for sending emails : http://danxlog.blogspot.in/2010/07/nagios-use-external-smtp-server-to-send.html . But that doesn't seem to be working for me. I have my /usr/local/nagios/etc/resource.cfg file as : $USER1$=/usr/local/nagios/libexec $USER5$=smtp.gmail.com:587 $USER9$=myaccount at gmail.com $USER10$=mypassword And in my commands file I added these two as said in the blog post : define command{ command_name notify-host-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/local/bin/sendEmail -s $USER7$ -t $CONTACTEMAIL$ -f $USER5$ -l /var/log/sendEmail -u "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" -m "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" } define command{ command_name notify-service-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/local/bin/sendEmail -s $USER7$ -t $CONTACTEMAIL$ -f $USER5$ -l /var/log/sendEmail -u "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" -m "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" } I restarted it. But it seems to be working! Can anyone help in this regard? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From juhlke at aez-asdonkshof.de Wed Aug 22 10:44:36 2012 From: juhlke at aez-asdonkshof.de (juhlke) Date: Wed, 22 Aug 2012 10:44:36 +0200 Subject: RRDTOOL Error in check_openmanage.php Message-ID: <42d6a0e1b76f804c960a065c9ed20815@localhost.localdomain> Hi all, if you are using the check_openmanage plugin V3.7.6 from http://folk.uio.no/trondham/software/check_openmanage.html with Dell Servers running the Dell Open Manage Version 7.1 you will be experiencing RRDTOOL errors with the pnp4nagios-template of this V3.7.6 for displaying AMPERAGE PROBES. The template distinguishes between older (eg. V6.5) and newer (eg V7.0 / V7.1) versions of Dell Open Manage, the error only happens in the code for the new versions. You have to do a small change in the check_openmanage.php , otherwise the template mixes values from the AMBIENT TEMPERATURE into the AMPERAGE PROBE, causing the rrdtool error Original: ..... else { # --new-- ..... # AMPERAGE PROBE if (preg_match('/^A/', $label)) { Change to: # AMPERAGE PROBE if (preg_match('/^A/', $label) && preg_match('/Current/', $label)) { Hope this will save your time:-) Regards Lars -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From luisforchesatto at gmail.com Wed Aug 22 14:03:10 2012 From: luisforchesatto at gmail.com (Luis H. Forchesatto) Date: Wed, 22 Aug 2012 09:03:10 -0300 Subject: How to set up sending alerts? In-Reply-To: References: Message-ID: Make this test: try to send a mail with the syntax you are using: # printf "blablablabla" | sendEmail "etc...etc...etc..." you at yourdomain.com. 2012/8/22 Aravinth Anto Intern > Hi all, > > I'm very new to nagios. I followed this blog to set up the smtp server for > sending emails : > http://danxlog.blogspot.in/2010/07/nagios-use-external-smtp-server-to-send.html > . > > But that doesn't seem to be working for me. I have > my /usr/local/nagios/etc/resource.cfg file as : > > > $USER1$=/usr/local/nagios/libexec > > $USER5$=smtp.gmail.com:587 > > $USER9$=myaccount at gmail.com > $USER10$=mypassword > > And in my commands file I added these two as said in the blog post : > > define command{ > command_name notify-host-by-email > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: > $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: > $LONGDATETIME$\n" | /usr/local/bin/sendEmail -s $USER7$ -t $CONTACTEMAIL$ > -f $USER5$ -l /var/log/sendEmail -u "** $NOTIFICATIONTYPE$ Host Alert: > $HOSTNAME$ is $HOSTSTATE$ **" -m "***** Nagios *****\n\nNotification Type: > $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: > $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" > } > > > define command{ > command_name notify-service-by-email > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: > $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: > $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional > Info:\n\n$SERVICEOUTPUT$" | /usr/local/bin/sendEmail -s $USER7$ -t > $CONTACTEMAIL$ -f $USER5$ -l /var/log/sendEmail -u "** $NOTIFICATIONTYPE$ > Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" -m "***** > Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: > $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: > $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional > Info:\n\n$SERVICEOUTPUT$" > } > > I restarted it. But it seems to be working! Can anyone help in this regard? > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -- Att.* *** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From gslindstrom at gmail.com Wed Aug 22 13:49:14 2012 From: gslindstrom at gmail.com (Greg Lindstrom) Date: Wed, 22 Aug 2012 06:49:14 -0500 Subject: Mulit-Line Passive Commands? Message-ID: Hello, We are running Nagios Core and I would like to know if it is posisble to have multi-line comments passed through a passive command. The problem I'm having is that when I place a linefeed in the comment section of my passive command, it is written out as a newline in the command file (as one would expect). I like the idea of having the "title" line appear on the main Nagios screen with details available when you click on the individual monitors. Is this possible with passive commands? Thanks, --greg -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From havi.arevalo at gowireless.net Tue Aug 21 00:37:20 2012 From: havi.arevalo at gowireless.net (Havi Arevalo) Date: Mon, 20 Aug 2012 22:37:20 +0000 Subject: check_disk v1.4.16-29-g3c10 (nagios-plugins 1.4.16) Message-ID: <880727A842FE354480FF60E2248CFC6B0395595F@MBX1.gowireless.net> What would be the syntax line command, using this plugin, that will alert warning at 10Gb Free and Critical at 5Gb Free? Havi Arevalo * Network & Telecom Manager * GoWireless, Inc. * 866.487.1222 ext 91042 Office * 702.853.6232 Direct * 702.232.1485 Mobile * 702.853.6244 Fax * www.gowireless.net P Please consider the environment before printing this e-mail. CONFIDENTIALITY NOTICE: This e-mail transmission, and any documents, files or previous e-mail messages attached to it may contain information that is proprietary, confidential, legally privileged or protected by the work-product doctrine. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify the sender. Please destroy the original transmission and its attachments without reading or saving in any manner. Thank you, GoWireless, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From anjanag at goodhope-lk.com Tue Aug 21 06:44:28 2012 From: anjanag at goodhope-lk.com (Anjana Gonagala) Date: Tue, 21 Aug 2012 10:14:28 +0530 Subject: check_snmp Issue Message-ID: Hi Team, We implemented the Nagios latest version in our organization and we are experiencing following mentioned issue. We need to monitor switches, routers through "check_snmp" plugin and when executed the plugin, got the below error. root at bescmbex:/usr/lib/nagios/plugins# ./check_snmp -H 192.168.7.9 -C ahlbs_snmp -o ifOperStatus.1 -r 1 -m RFC1213-MIB External command error: MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp Cannot find module (SNMPv2-SMI): At line 0 in (none) ifOperStatus.1: Unknown Object Identifier (Sub-id not found: (top) -> ifOperStatus) root at bescmbex:/usr/lib/nagios/plugins# Environment Details Ubuntu 11.0 Nagios 3.4.1 Appreciate your quick response regarding above. Regards, ========================================================== The information contained in this message and any attachments are confidential and/or privileged. It is intended solely for the use of the individual or entity to whom it is addressed. Any retransmission, dissemination or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you receive this e-mail in error please notify helpdesk at goodhope-lk.com immediately and delete this message. Official business transactions of the Company are subject to written contract and/or formal official correspondence by the Company. Visit Our Corporate Website: www.goodhopeholdings.com ======================================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 27851 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From sjcarr at gmail.com Wed Aug 22 18:03:56 2012 From: sjcarr at gmail.com (Steven Carr) Date: Wed, 22 Aug 2012 17:03:56 +0100 Subject: check_snmp Issue In-Reply-To: References: Message-ID: So as the error suggests it can't find the "SNMPv2-SMI" mib. Do you know where/if this mib is located on your system? Steve On 21 August 2012 05:44, Anjana Gonagala wrote: > Hi Team, > > We implemented the Nagios latest version in our organization and we are > experiencing following mentioned issue. > > - We need to monitor switches, routers through "check_snmp" plugin and > when executed the plugin, got the below error. > > > > *root at bescmbex:/usr/lib/nagios/plugins#* ./check_snmp -H 192.168.7.9 -C > ahlbs_snmp -o ifOperStatus.1 -r 1 -m RFC1213-MIB > External command error: MIB search path: > /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp > Cannot find module (SNMPv2-SMI): At line 0 in (none) > ifOperStatus.1: Unknown Object Identifier (Sub-id not found: (top) -> > ifOperStatus) > > *root at bescmbex:/usr/lib/nagios/plugins#* > > *Environment Details* > > - Ubuntu 11.0 > - Nagios 3.4.1 > > > > Appreciate your quick response regarding above. > > > Regards, > > ========================================================== > The information contained in this message and any attachments are confidential > and/or privileged. It is intended solely for the use of the individual or entity to > whom it is addressed. Any retransmission, dissemination or taking of any action > in reliance upon this information by persons or entities other than the intended > recipient is prohibited. If you receive this e-mail in error please notifyhelpdesk at goodhope-lk.com immediately and delete this message. Official > business transactions of the Company are subject to written contract and/or formal > official correspondence by the Company. > > Visit Our Corporate Website: www.goodhopeholdings.com > ======================================================== > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 27851 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From sjcarr at gmail.com Wed Aug 22 18:11:16 2012 From: sjcarr at gmail.com (Steven Carr) Date: Wed, 22 Aug 2012 17:11:16 +0100 Subject: check_disk v1.4.16-29-g3c10 (nagios-plugins 1.4.16) In-Reply-To: <880727A842FE354480FF60E2248CFC6B0395595F@MBX1.gowireless.net> References: <880727A842FE354480FF60E2248CFC6B0395595F@MBX1.gowireless.net> Message-ID: Check the readme for the options... ./check_disk -h On my system it would work out to be: ./check_disk -w 10240 -c 5120 -m -p /path Steve On 20 August 2012 23:37, Havi Arevalo wrote: > What would be the syntax line command, using this plugin, that will alert > warning at 10Gb Free and Critical at 5Gb Free? ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From t-aravinth at juspay.in Thu Aug 23 15:10:24 2012 From: t-aravinth at juspay.in (Aravinth Anto Intern) Date: Thu, 23 Aug 2012 18:40:24 +0530 Subject: What all ports need to be opened? Message-ID: HI all, I'm very new to Nagios. I want to know what all ports need to be opened in order to work with Nagios. Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From sjcarr at gmail.com Thu Aug 23 16:15:33 2012 From: sjcarr at gmail.com (Steven Carr) Date: Thu, 23 Aug 2012 15:15:33 +0100 Subject: What all ports need to be opened? In-Reply-To: References: Message-ID: You don't really specify what about Nagios you are firewalling. Inbound/outbound? NRPE? Outbound you will need to ensure that any ports Nagios is testing are open, NRPE uses port 5666 by default. Inbound depends on what is trying to contact Nagios. Steve On 23 August 2012 14:10, Aravinth Anto Intern wrote: > HI all, > > I'm very new to Nagios. I want to know what all ports need to be opened in > order to work with Nagios. > > Thanks in advance. > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From subashtetali at yahoo.com Thu Aug 23 02:28:15 2012 From: subashtetali at yahoo.com (Subash Tetali) Date: Wed, 22 Aug 2012 17:28:15 -0700 (PDT) Subject: issue with http_check Message-ID: <1345681695.47198.YahooMailClassic@web120601.mail.ne1.yahoo.com> Hi Team, I am facing an issue with the check_http. When i run the check_http command manully, I get HTTP OK and when i add to teh config, the nagios UI shows as critical ./check_http -H nc1-dc1.corp.abc.com -p 5270 -u /service/assortment -P '{"context" = {"language"="en-us" ; } ; }' -T application/text-plist -w 1.0 -c 1.5 HTTP OK: HTTP/1.0 200WebObjects - 6614 bytes in 0.256 second response time |time=0.256244s;1.000000;1.500000;0.000000 size=6614B;;;0 The added the same to the commands.cfg and made changes to the services.cfg and servicegroup.cfg. Your help is highly appreciated Thanks Tetali Subash -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From cbeattie at geninfo.com Thu Aug 23 16:42:33 2012 From: cbeattie at geninfo.com (Chris Beattie) Date: Thu, 23 Aug 2012 10:42:33 -0400 Subject: Strategies for coping with self-DOS? Message-ID: <50364159.1070806@geninfo.com> Where I work, the server engineers want Nagios to notify them fairly quickly when a problem develops. During the day, the settings are fine. Recently, however, the nightly backups and scheduled antivirus scans began causing enough load that monitored hosts to become briefly unavailable, but still long enough that Nagios sends notifications that make it to their pagers. What are some of the strategies you use to deal with this? The last time I dealt with this, I had two service template files, which specified different max_check_attempts and retry_intervals for day and night. I used a cron job to copy the appropriate template file to a name Nagios was configured to load, and restart Nagios. As we upgraded things, the problem went away, so I ditched that setup. It always seemed like a kludge. Scheduled reboots just smell like failure to me and they don't scale well if you have multiple thousands of hosts and services. Well, our server estate has continued to expand and now we're back to committing own-goals with the midnight pages. This time, I'm thinking about defining escalations with different timeperiods, but I'm curious to find out what other approaches have been successful. Thanks! -- -Chris Nothing in this message is intended to make or accept an offer or to form a contract, except that an attachment that is an image of a contract bearing the signature of an officer of our company may be or become a contract. This message (including any attachments) is intended only for the use of the individual or entity to whom it is addressed. It may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, we hereby notify you that any use, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this message in error, please notify us immediately by telephone and delete this message immediately. Thank you. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From t-aravinth at juspay.in Thu Aug 23 17:46:00 2012 From: t-aravinth at juspay.in (Aravinth Anto Intern) Date: Thu, 23 Aug 2012 21:16:00 +0530 Subject: What all ports need to be opened? In-Reply-To: References: Message-ID: I'm doing some checks on my client side. Say running cpu load check , apache check and others. On Thu, Aug 23, 2012 at 7:45 PM, Steven Carr wrote: > You don't really specify what about Nagios you are firewalling. > Inbound/outbound? NRPE? > > Outbound you will need to ensure that any ports Nagios is testing are > open, NRPE uses port 5666 by default. Inbound depends on what is > trying to contact Nagios. > > Steve > > > On 23 August 2012 14:10, Aravinth Anto Intern > wrote: > > HI all, > > > > I'm very new to Nagios. I want to know what all ports need to be opened > in > > order to work with Nagios. > > > > Thanks in advance. > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at 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 > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From sjcarr at gmail.com Thu Aug 23 17:56:23 2012 From: sjcarr at gmail.com (Steven Carr) Date: Thu, 23 Aug 2012 16:56:23 +0100 Subject: issue with http_check In-Reply-To: <1345681695.47198.YahooMailClassic@web120601.mail.ne1.yahoo.com> References: <1345681695.47198.YahooMailClassic@web120601.mail.ne1.yahoo.com> Message-ID: What is the status output of the command in Nagios? does it give you any messages as to why it's critical? and when you run the command on the CLI are you running that as the nagios user or root? Steve On 23 August 2012 01:28, Subash Tetali wrote: > Hi Team, > > I am facing an issue with the check_http. When i run the check_http > command manully, I get HTTP OK and when i add to teh config, the nagios UI > shows as critical > > ./check_http -H nc1-dc1.corp.abc.com -p 5270 -u /service/assortment -P > '{"context" = {"language"="en-us" ; } ; }' -T application/text-plist -w 1.0 > -c 1.5 > > HTTP OK: HTTP/1.0 200WebObjects - 6614 bytes in 0.256 second response time > |time=0.256244s;1.000000;1.500000;0.000000 size=6614B;;;0 > > The added the same to the commands.cfg and made changes to the > services.cfg and servicegroup.cfg. > > Your help is highly appreciated > > Thanks > Tetali Subash > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From giles at coochey.net Thu Aug 23 18:44:24 2012 From: giles at coochey.net (Giles Coochey) Date: Thu, 23 Aug 2012 17:44:24 +0100 Subject: What all ports need to be opened? In-Reply-To: References: Message-ID: <50365DE8.5070907@coochey.net> On 23/08/2012 16:46, Aravinth Anto Intern wrote: > I'm doing some checks on my client side. Say running cpu load check , > apache check and others. > What ports you require open will completely depend on what you're checking. The cpu load check could be via SNMP, in which case you want to open the SNMP ports (I believe these are usually UDP). Apache might run on port 80 and / or 443 - but, to be honest, it could run on *ANY* port, you just need to allow the relevant access from your Nagios system to access that. For each and every check, you need to evaluate how you are checking and create a rule for that particular access. There are no shortcuts, not secure ones anyway (e.g. trust your monitoring system implicitly across your entire network). -- Regards, Giles Coochey, CCNA, CCNAS NetSecSpec Ltd +44 (0) 7983 877438 http://www.netsecspec.co.uk giles.coochey at netsecspec.co.uk -- Regards, Giles Coochey, CCNA, CCNAS NetSecSpec Ltd +44 (0) 7983 877438 http://www.coochey.net http://www.netsecspec.co.uk giles at coochey.net -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4968 bytes Desc: S/MIME Cryptographic Signature URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From patrick.morris at hp.com Thu Aug 23 23:11:19 2012 From: patrick.morris at hp.com (Morris, Patrick) Date: Thu, 23 Aug 2012 21:11:19 +0000 Subject: issue with http_check In-Reply-To: <1345681695.47198.YahooMailClassic@web120601.mail.ne1.yahoo.com> References: <1345681695.47198.YahooMailClassic@web120601.mail.ne1.yahoo.com> Message-ID: From: Subash Tetali [mailto:subashtetali at yahoo.com] Sent: Wednesday, August 22, 2012 5:28 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] issue with http_check > Hi Team, > I am facing an issue with the check_http. When i run the check_http command manully, I get HTTP OK > and when i add to teh config, the nagios UI shows as critical > ./check_http -H nc1-dc1.corp.abc.com -p 5270 -u /service/assortment -P '{"context" = {"language"="en-us" ; } ; }' -T application/text-plist -w 1.0 -c 1.5 > HTTP OK: HTTP/1.0 200WebObjects - 6614 bytes in 0.256 second response time |time=0.256244s;1.000000;1.500000;0.000000 size=6614B;;;0 > The added the same to the commands.cfg and made changes to the services.cfg and servicegroup.cfg. It would be extremely helpful to know what your configuration looks like, as well as the output of the command when run by Nagios. The most likely reason it's failing is that the special characters are not properly escaped in the command, but that's just a guess since you haven't provided critical information that would be needed to determine that. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 6231 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From support at voipbusiness.us Fri Aug 24 23:10:31 2012 From: support at voipbusiness.us (Tech Support) Date: Fri, 24 Aug 2012 17:10:31 -0400 Subject: Running a plugin at specific times Message-ID: <000001cd823c$e574ad10$b05e0730$@us> Hello; I am fairly new to Nagios, and this is my first project using it. What I would like to do is run a plugin at specific times of the day. This particular plugin is pretty intrusive, so I would like to run it only at 7:00am and 7:00pm daily. Is there an easy way of doing this? I'm thinking that I can run the script out of CRON, then passively send the data to Nagios via its command pipe, but I'm not sure if that's the best way to go. Thanks; John -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From stu.watts at gmail.com Sat Aug 25 01:07:47 2012 From: stu.watts at gmail.com (Stu Watts) Date: Sat, 25 Aug 2012 00:07:47 +0100 Subject: Running a plugin at specific times In-Reply-To: <000001cd823c$e574ad10$b05e0730$@us> References: <000001cd823c$e574ad10$b05e0730$@us> Message-ID: Nagios does time periods itself, so no need for cron: http://nagios.sourceforge.net/docs/nagioscore/3/en/timeperiods.html The Nagios documentation is pretty good - have a check through. Chance are it can do what you want.. ;-) On 24 August 2012 22:10, Tech Support wrote: > Hello;**** > > I am fairly new to Nagios, and this is my first project using it. What > I would like to do is run a plugin at specific times of the day. This > particular plugin is pretty intrusive, so I would like to run it only at > 7:00am and 7:00pm daily. Is there an easy way of doing this? I?m thinking > that I can run the script out of CRON, then passively send the data to > Nagios via its command pipe, but I?m not sure if that?s the best way to go. > **** > > Thanks;**** > > John **** > > ** ** > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -- Stu "Did I do that deja-vu joke?" -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From work at paul.dubuc.org Sun Aug 26 23:12:34 2012 From: work at paul.dubuc.org (Paul M Dubuc) Date: Sun, 26 Aug 2012 17:12:34 -0400 Subject: Running a plugin at specific times In-Reply-To: References: <000001cd823c$e574ad10$b05e0730$@us> Message-ID: <503A9142.2000209@paul.dubuc.org> > On 24 August 2012 22:10, Tech Support > wrote: > > Hello;____ > > I am fairly new to Nagios, and this is my first project using > it. What I would like to do is run a plugin at specific times of the > day. This particular plugin is pretty intrusive, so I would like to > run it only at 7:00am and 7:00pm daily. Is there an easy way of > doing this? I?m thinking that I can run the script out of CRON, then > passively send the data to Nagios via its command pipe, but I?m not > sure if that?s the best way to go. ____ > Stu Watts wrote:> Nagios does time periods itself, so no need for cron: > > http://nagios.sourceforge.net/docs/nagioscore/3/en/timeperiods.html > > The Nagios documentation is pretty good - have a check through. Chance > are it can do what you want.. ;-) > I don't think setting time periods will ensure that a check is run at specific times. Best they can do is specify time periods in which they may run. Using cron may be the way to go. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From stu.watts at gmail.com Mon Aug 27 00:28:04 2012 From: stu.watts at gmail.com (Stu Watts) Date: Sun, 26 Aug 2012 23:28:04 +0100 Subject: Running a plugin at specific times In-Reply-To: <503A9142.2000209@paul.dubuc.org> References: <000001cd823c$e574ad10$b05e0730$@us> <503A9142.2000209@paul.dubuc.org> Message-ID: Oops - I read that as "from 7pm to 7am". Yes, cron might well be the way ahead! Unless you specify two very short timeperiods (i.e. 0700-0706 and 1900-1906) to run the check (assuming a 5 minute check time)? On 26 August 2012 22:12, Paul M Dubuc wrote: > > > On 24 August 2012 22:10, Tech Support > > wrote: > > > > Hello;____ > > > > I am fairly new to Nagios, and this is my first project using > > it. What I would like to do is run a plugin at specific times of the > > day. This particular plugin is pretty intrusive, so I would like to > > run it only at 7:00am and 7:00pm daily. Is there an easy way of > > doing this? I?m thinking that I can run the script out of CRON, then > > passively send the data to Nagios via its command pipe, but I?m not > > sure if that?s the best way to go. ____ > > > Stu Watts wrote:> Nagios does time periods itself, so no need for cron: > > > > http://nagios.sourceforge.net/docs/nagioscore/3/en/timeperiods.html > > > > The Nagios documentation is pretty good - have a check through. Chance > > are it can do what you want.. ;-) > > > > I don't think setting time periods will ensure that a check is run at > specific times. Best they can do is specify time periods in which they > may run. > > Using cron may be the way to go. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -- Stu "Did I do that deja-vu joke?" -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From rl_kd at yahoo.com Mon Aug 27 04:06:46 2012 From: rl_kd at yahoo.com (rl_kd at yahoo.com) Date: Mon, 27 Aug 2012 02:06:46 +0000 Subject: NPC nagios/cacti Message-ID: <764748074-1346033206-cardhu_decombobulator_blackberry.rim.net-2113880655-@b2.c15.bise7.blackberry> Hello, I installed nagios using: apt-get install nagios3 I can't find the configuration files I need to edit to define hosts, services etc. I'm trying to use npc to integrate with cacti but it shows nagios status as off. Do I have to compile nagios to get it to work or where can I find these .cfg files. Thank you. Adeyinca Sent from my BlackBerry wireless device from MTN ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From rl_kd at yahoo.com Mon Aug 27 04:14:07 2012 From: rl_kd at yahoo.com (rl_kd at yahoo.com) Date: Mon, 27 Aug 2012 02:14:07 +0000 Subject: NPC nagios/cacti In-Reply-To: <764748074-1346033206-cardhu_decombobulator_blackberry.rim.net-2113880655-@b2.c15.bise7.blackberry> References: <764748074-1346033206-cardhu_decombobulator_blackberry.rim.net-2113880655-@b2.c15.bise7.blackberry> Message-ID: <1493258132-1346033649-cardhu_decombobulator_blackberry.rim.net-996790065-@b2.c15.bise7.blackberry> Nagios3 was installed on ubuntu server 12.04 Sent from my BlackBerry wireless device from MTN -----Original Message----- From: rl_kd at yahoo.com Date: Mon, 27 Aug 2012 02:06:46 To: Reply-To: rl_kd at yahoo.com, Nagios Users List Subject: [Nagios-users] NPC nagios/cacti Hello, I installed nagios using: apt-get install nagios3 I can't find the configuration files I need to edit to define hosts, services etc. I'm trying to use npc to integrate with cacti but it shows nagios status as off. Do I have to compile nagios to get it to work or where can I find these .cfg files. Thank you. Adeyinca Sent from my BlackBerry wireless device from MTN ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From travisrunyard at gmail.com Mon Aug 27 09:03:40 2012 From: travisrunyard at gmail.com (Travis Runyard) Date: Mon, 27 Aug 2012 00:03:40 -0700 Subject: NPC nagios/cacti In-Reply-To: <764748074-1346033206-cardhu_decombobulator_blackberry.rim.net-2113880655-@b2.c15.bise7.blackberry> References: <764748074-1346033206-cardhu_decombobulator_blackberry.rim.net-2113880655-@b2.c15.bise7.blackberry> Message-ID: /usr/local/nagios/etc/objects On Aug 26, 2012 7:15 PM, wrote: > Hello, > I installed nagios using: > > apt-get install nagios3 > > I can't find the configuration files I need to edit to define hosts, > services etc. > I'm trying to use npc to integrate with cacti but it shows nagios status > as off. > Do I have to compile nagios to get it to work or where can I find these > .cfg files. > Thank you. > > Adeyinca > > Sent from my BlackBerry wireless device from MTN > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From lists at mykeul.com Mon Aug 27 10:45:59 2012 From: lists at mykeul.com (Mykeul) Date: Mon, 27 Aug 2012 10:45:59 +0200 Subject: NPC nagios/cacti In-Reply-To: <764748074-1346033206-cardhu_decombobulator_blackberry.rim.net-2113880655-@b2.c15.bise7.blackberry> References: <764748074-1346033206-cardhu_decombobulator_blackberry.rim.net-2113880655-@b2.c15.bise7.blackberry> Message-ID: <503B33C7.3040703@mykeul.com> Hello, Did you even search for these files ? Let's see how you could find them : # dpkg -L nagios3 or # find / -name "*.cfg" |grep nagios or # updatedb; locate nagios.cfg or ... even more ways to find them. I dont use Ubuntu, however, my first try would be /etc/nagios3 or /etc/nagios3/objects ... maybe /etc/nagios/ Please use http://nagios.sourceforge.net/docs/nagioscore/3/en/toc.html for the next steps. Have a nice day, M On 27/08/2012 04:06, rl_kd at yahoo.com wrote: > Hello, > I installed nagios using: > > apt-get install nagios3 > > I can't find the configuration files I need to edit to define hosts, services etc. > I'm trying to use npc to integrate with cacti but it shows nagios status as off. > Do I have to compile nagios to get it to work or where can I find these .cfg files. > Thank you. > > Adeyinca > > Sent from my BlackBerry wireless device from MTN > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From phildobbin at gmail.com Mon Aug 27 11:13:23 2012 From: phildobbin at gmail.com (Phil Dobbin) Date: Mon, 27 Aug 2012 10:13:23 +0100 Subject: NPC nagios/cacti In-Reply-To: <503B33C7.3040703@mykeul.com> References: <764748074-1346033206-cardhu_decombobulator_blackberry.rim.net-2113880655-@b2.c15.bise7.blackberry> <503B33C7.3040703@mykeul.com> Message-ID: <503B3A33.7060905@gmail.com> Mykeul wrote: > Hello, > > Did you even search for these files ? > Let's see how you could find them : > # dpkg -L nagios3 > or > # find / -name "*.cfg" |grep nagios > or > # updatedb; locate nagios.cfg > or > ... even more ways to find them. > > I dont use Ubuntu, however, my first try would be /etc/nagios3 or > /etc/nagios3/objects ... maybe /etc/nagios/ > > Please use http://nagios.sourceforge.net/docs/nagioscore/3/en/toc.html > for the next steps. To be fair, he was looking for a hosts.cfg to define remote hosts as indeed am I & there doesn't seem to be sample template.cfg in that repect that I can find on either Fedora, OS X or Ubuntu. Having said that, I'm using a package manger to install all three so maybe grabbing the source would help, they may reside there. Alternatively, use a template from the web as I have done (even Learning Nagios 3 by Wojciech Kocjan doesn't give a template for hosts.cfg or remote.cfg). Cheers, Phil... -- But masters, remember that I am an ass. Though it be not written down, yet forget not that I am an ass. Wm. Shakespeare - Much Ado About Nothing ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From lists at mykeul.com Mon Aug 27 12:02:12 2012 From: lists at mykeul.com (Mykeul) Date: Mon, 27 Aug 2012 12:02:12 +0200 Subject: NPC nagios/cacti In-Reply-To: <503B3A33.7060905@gmail.com> References: <764748074-1346033206-cardhu_decombobulator_blackberry.rim.net-2113880655-@b2.c15.bise7.blackberry> <503B33C7.3040703@mykeul.com> <503B3A33.7060905@gmail.com> Message-ID: <503B45A4.7040304@mykeul.com> Hello, OK, fine, I did not know the distribution package does not provide those files, I am used to compile nagios and they are shipped with. M On 27/08/2012 11:13, Phil Dobbin wrote: > Mykeul wrote: > >> Hello, >> >> Did you even search for these files ? >> Let's see how you could find them : >> # dpkg -L nagios3 >> or >> # find / -name "*.cfg" |grep nagios >> or >> # updatedb; locate nagios.cfg >> or >> ... even more ways to find them. >> >> I dont use Ubuntu, however, my first try would be /etc/nagios3 or >> /etc/nagios3/objects ... maybe /etc/nagios/ >> >> Please use http://nagios.sourceforge.net/docs/nagioscore/3/en/toc.html >> for the next steps. > To be fair, he was looking for a hosts.cfg to define remote hosts as > indeed am I & there doesn't seem to be sample template.cfg in that > repect that I can find on either Fedora, OS X or Ubuntu. > > Having said that, I'm using a package manger to install all three so > maybe grabbing the source would help, they may reside there. > Alternatively, use a template from the web as I have done (even Learning > Nagios 3 by Wojciech Kocjan doesn't give a template for hosts.cfg or > remote.cfg). > > Cheers, > > Phil... > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From bbecken at yahoo.com Mon Aug 27 15:20:42 2012 From: bbecken at yahoo.com (Brad Beckenhauer) Date: Mon, 27 Aug 2012 06:20:42 -0700 (PDT) Subject: check_snmp Message-ID: <1346073642.64079.YahooMailNeo@web164602.mail.gq1.yahoo.com> I have got an app that require us to monitor the Swap file space and trigger an alert when the Available Swap (free space, falls below 500MB).? Initially it seems pretty simple, but the check_snmp plugin does not seem to be working with ranges. Here is the first command and it is correctly reporting the free space on the system.? Great, so I added some warning and critical limits but the limits are not working the way I expected. Test 1: No limits, looks good. # ./check_snmp -H removed -m UCD-SNMP-MIB -C removed -o memAvailSwap.0 SNMP OK - 751600 | UCD-SNMP-MIB::memAvailSwap.0=751600 Test 2: This should return OK because the warning is outside the returned value, but it is reporting a WARNING. # ./check_snmp -H removed -m UCD-SNMP-MIB -C removed -o memAvailSwap.0 -w 400000:500000 SNMP WARNING - *751348* | UCD-SNMP-MIB::memAvailSwap.0=751348 Test 3: This should return OK, but is incorrectly reporting CRITICAL. # ./check_snmp -H removed -m UCD-SNMP-MIB -C removed -o memAvailSwap.0 -w 400000:500000 -c 1:250000 SNMP CRITICAL - *751352* | UCD-SNMP-MIB::memAvailSwap.0=751352 Test 4: This should return a WARNING, but instead is reporting OK. /check_snmp -H removed -m UCD-SNMP-MIB -C removed -o memAvailSwap.0 -w 500000:800000 SNMP OK - 751352 | UCD-SNMP-MIB::memAvailSwap.0=751352 This acts like the -w is the "acceptable range", Perhaps my understanding of the check_snmp is incorrect... Since I cannot install an agent on the OS, I'm open to suggestions on monitoring the free disk space on the system via SNMP or fixing the check_snmp package. thanks B -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From ae at op5.se Mon Aug 27 15:36:54 2012 From: ae at op5.se (Andreas Ericsson) Date: Mon, 27 Aug 2012 15:36:54 +0200 Subject: Call for configs Message-ID: <503B77F6.5030507@op5.se> Hi everyone. Sorry for crossposting. As some of you may have noticed, the Nagios 4 development is well under way and introduces some changes in how we parse object config. Primarily in order to make it a whole lot faster, which it's in dire need of at the moment. Anyways.. I'm looking for Nagios configurations to help me verify that what I'm doing isn't breaking anything with regards to object config. I could generate configs (and I have), but there are so many various options that I can't possibly create all possible permutations that work all possible features of the Nagios configuration, so I've decided to fall back to lazy mode and see if anyone wants to step up and send me their configurations directly. I've created a small scriptlet that will let you anonymize most of your configuration, which can be downloaded from here: http://dl.dropbox.com/u/83439435/scripts/nagios-anonymizer.sh It won't replace your *_name variables, because doing that in a sensible manner requires individually hashing all of them and then replacing them with their hashed versions, and verifying a config like that is just a huge pain in the butt, but addresses, email addresses, pager numbers, aliases and all command information is wiped completely clean. The resource.cfg file isn't even included, so any and all passwords or secrets stored there will be left where it is. Thanks for helping out :) -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From ae at op5.se Mon Aug 27 15:42:23 2012 From: ae at op5.se (Andreas Ericsson) Date: Mon, 27 Aug 2012 15:42:23 +0200 Subject: check_snmp In-Reply-To: <1346073642.64079.YahooMailNeo@web164602.mail.gq1.yahoo.com> References: <1346073642.64079.YahooMailNeo@web164602.mail.gq1.yahoo.com> Message-ID: <503B793F.3010509@op5.se> On 08/27/2012 03:20 PM, Brad Beckenhauer wrote: > I have got an app that require us to monitor the Swap file > space and trigger an alert when the Available Swap (free > space, falls below 500MB). Initially it seems pretty simple, but the check_snmp plugin does not seem to be working with ranges. > > > Here is the first command and it is correctly reporting the free space on > the system. Great, so I added some warning and critical limits but the > limits are not working the way I expected. > > > Test 1: No limits, looks good. > > # ./check_snmp -H removed -m UCD-SNMP-MIB -C removed -o memAvailSwap.0 > SNMP OK - 751600 | UCD-SNMP-MIB::memAvailSwap.0=751600 > > Test 2: This should return OK because the warning is outside the returned value, but it is reporting a WARNING. > You misunderstand. When using ranges, the given range are the limits on the OK range, and anything outside that triggers the alert. As per your explanation above, I would assume -c 500000: -w 550000: would be reasonable values. That will cause a critical alert when the value is below 500000 and a warning value when it's below 550000. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From phildobbin at gmail.com Mon Aug 27 16:44:35 2012 From: phildobbin at gmail.com (Phil Dobbin) Date: Mon, 27 Aug 2012 15:44:35 +0100 Subject: NPC nagios/cacti In-Reply-To: <503B45A4.7040304@mykeul.com> References: <764748074-1346033206-cardhu_decombobulator_blackberry.rim.net-2113880655-@b2.c15.bise7.blackberry> <503B33C7.3040703@mykeul.com> <503B3A33.7060905@gmail.com> <503B45A4.7040304@mykeul.com> Message-ID: <503B87D3.4080807@gmail.com> Mykeul wrote: > Hello, > > OK, fine, I did not know the distribution package does not provide those > files, I am used to compile nagios and they are shipped with. Following this thread up, I downloaded the source for both nagios-core & nagios-plugins & there is no template that I can find a la `hosts.cfg` or `remote.cfg`. Sorry if this query appears blindingly obvious to longtime users of Nagios but could anybody point me in the direction of a template that I can use to set-up & check remote hosts using check_nrpe/check_ssh the distro being in this case (server & client, same version) Ubuntu 12.04 running nagios3? Many thanks, Phil... -- But masters, remember that I am an ass. Though it be not written down, yet forget not that I am an ass. Wm. Shakespeare - Much Ado About Nothing ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From netwarrior863 at gmail.com Wed Aug 29 01:39:50 2012 From: netwarrior863 at gmail.com (Net Warrior) Date: Tue, 28 Aug 2012 20:39:50 -0300 Subject: Notification did not execute Message-ID: Hi there guys. I have face something weird, I did not get a notificationn of a down state for a particular host, this is the host config. define service{ use local-service ; Name of service template to use host_name hostname service_description SSH check_command check_ssh flap_detection_enabled 0 notifications_enabled 1 notification_options w,u,r,c check_period 24x7 check_interval 1 max_check_attempts 3 first_notification_delay 0 notification_interval 10 } define host{ use linux-server ; Name of host template to use ; This host definition will inherit all variables that are defined ; in (or inherited by) the linux-server host template definition. host_name hostname alias the alias address x.x.x.x contact_groups admins contacts nagiosadmin check_interval 1 max_check_attempts 3 notification_interval 10 flap_detection_enabled 0 first_notification_delay 0 } and in the logs I got [1346196987.097821] [032.0] [pid=21145] ** Service Notification Attempt ** Host: 'hostname', Service: 'SSH', Type: 0, Options: 0, Current State: 2, Last Notification: Wed Dec 31 21:00:00 1969 [1346196987.097843] [032.1] [pid=21145] The host is either down or unreachable, so we won't notify contacts about this service. [1346196987.097851] [032.0] [pid=21145] Notification viability test failed. No notification will be sent out. The host is either down or unreachable --- Of coure, so why the notification was not fired? Any idea what could be wrong?, I got some notification with other host and all have the same configuration, I have already restarted nagios Thanks for your time and support Best regards. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From kaushalshriyan at gmail.com Wed Aug 29 01:52:50 2012 From: kaushalshriyan at gmail.com (Kaushal Shriyan) Date: Wed, 29 Aug 2012 05:22:50 +0530 Subject: sms alert notification in Nagios 3.4.1 Message-ID: Hi, Any example or any docs which explains to set sms Service/Host UP/Down Notification alert in Nagios core 3.4.1? Regards, Kaushal ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From netwarrior863 at gmail.com Wed Aug 29 02:06:05 2012 From: netwarrior863 at gmail.com (Net Warrior) Date: Tue, 28 Aug 2012 21:06:05 -0300 Subject: sms alert notification in Nagios 3.4.1 In-Reply-To: References: Message-ID: Hi I use my own internal sms system to send alerts, long time ago I use the mobile company service to send and email in a format like 84848484 at sms.company.com You only have to define your own command or use the one already defined in command.cfg If you want I can share with you how I did it, it is easy. but basically after you define the command you define in contacts.cfg srvice_notification_commands send-sms-service,notify-service-by-email host_notification_commands send-sms-host,notify-host-by-email send-sms is my own defined command which fires up lynx pointing to an intranet where the sms service runs. Regards 2012/8/28 Kaushal Shriyan : > Hi, > > Any example or any docs which explains to set sms Service/Host UP/Down > Notification alert in Nagios core 3.4.1? > > Regards, > > Kaushal > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From travisrunyard at gmail.com Wed Aug 29 02:14:16 2012 From: travisrunyard at gmail.com (Travis Runyard) Date: Tue, 28 Aug 2012 17:14:16 -0700 Subject: Notification did not execute In-Reply-To: References: Message-ID: Your should look at the log before the service notification was suppressed because the host was down. I'm 90% sure the reason why your host down notification was not sent was because the host was in a soft state type and came back online before it was determined to be in a hard state. And you didn't post your linux-server template config so you will have to check your and retry_interval definition. For my host objects I set a retry_interval of 1 and max_check_attemps of 2 in the template so I get notified a little quicker when a host goes down. http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html -Travis Runyard On Tue, Aug 28, 2012 at 4:39 PM, Net Warrior wrote: > Hi there guys. > > I have face something weird, I did not get a notificationn of a down > state for a particular host, > this is the host config. > > define service{ > use local-service ; Name > of service template to use > host_name hostname > service_description SSH > check_command check_ssh > flap_detection_enabled 0 > notifications_enabled 1 > notification_options w,u,r,c > check_period 24x7 > check_interval 1 > max_check_attempts 3 > first_notification_delay 0 > notification_interval 10 > } > > > > define host{ > use linux-server ; Name of host > template to use > ; This host > definition will inherit all variables that are defined > ; in (or > inherited by) the linux-server host template definition. > host_name hostname > alias the alias > address x.x.x.x > contact_groups admins > contacts nagiosadmin > check_interval 1 > max_check_attempts 3 > notification_interval 10 > flap_detection_enabled 0 > first_notification_delay 0 > } > > and in the logs I got > [1346196987.097821] [032.0] [pid=21145] ** Service Notification > Attempt ** Host: 'hostname', Service: 'SSH', Type: 0, Options: 0, > Current State: 2, Last Notification: Wed Dec 31 21:00:00 1969 > [1346196987.097843] [032.1] [pid=21145] The host is either down or > unreachable, so we won't notify contacts about this service. > [1346196987.097851] [032.0] [pid=21145] Notification viability test > failed. No notification will be sent out. > > The host is either down or unreachable --- Of coure, so why the > notification was not fired? > > Any idea what could be wrong?, I got some notification with other host > and all have the same configuration, I have already restarted nagios > > Thanks for your time and support > Best regards. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Edwin.Zoeller at ama-assn.org Wed Aug 29 02:16:43 2012 From: Edwin.Zoeller at ama-assn.org (Edwin Zoeller) Date: Wed, 29 Aug 2012 00:16:43 +0000 Subject: sms alert notification in Nagios 3.4.1 In-Reply-To: References: Message-ID: That would be great ----- Original Message ----- From: Net Warrior [mailto:netwarrior863 at gmail.com] Sent: Tuesday, August 28, 2012 07:06 PM To: Nagios Users List Subject: Re: [Nagios-users] sms alert notification in Nagios 3.4.1 Hi I use my own internal sms system to send alerts, long time ago I use the mobile company service to send and email in a format like 84848484 at sms.company.com You only have to define your own command or use the one already defined in command.cfg If you want I can share with you how I did it, it is easy. but basically after you define the command you define in contacts.cfg srvice_notification_commands send-sms-service,notify-service-by-email host_notification_commands send-sms-host,notify-host-by-email send-sms is my own defined command which fires up lynx pointing to an intranet where the sms service runs. Regards 2012/8/28 Kaushal Shriyan : > Hi, > > Any example or any docs which explains to set sms Service/Host UP/Down > Notification alert in Nagios core 3.4.1? > > Regards, > > Kaushal > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From travisrunyard at gmail.com Wed Aug 29 02:23:37 2012 From: travisrunyard at gmail.com (Travis Runyard) Date: Tue, 28 Aug 2012 17:23:37 -0700 Subject: sms alert notification in Nagios 3.4.1 In-Reply-To: References: Message-ID: As Net Warrier said, using your phone company's email-to-text service is tons easier than setting up your own sms/mms server. I've tried nagios_csmpp plugin but never got it to work. You need to have an SMPP gateway which you typically would need to pay for. Verizon offers the ##########@vtext.com service so I have nagios send a notification to that address for critical systems. Travis Runyard On Tue, Aug 28, 2012 at 5:06 PM, Net Warrior wrote: > Hi > I use my own internal sms system to send alerts, long time ago I use > the mobile company service to send > and email in a format like 84848484 at sms.company.com > > You only have to define your own command or use the one already > defined in command.cfg > If you want I can share with you how I did it, it is easy. > > but basically after you define the command you define in contacts.cfg > > srvice_notification_commands send-sms-service,notify-service-by-email > host_notification_commands send-sms-host,notify-host-by-email > > send-sms is my own defined command which fires up lynx pointing to an > intranet where the > sms service runs. > > Regards > > > 2012/8/28 Kaushal Shriyan : > > Hi, > > > > Any example or any docs which explains to set sms Service/Host UP/Down > > Notification alert in Nagios core 3.4.1? > > > > Regards, > > > > Kaushal > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at 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 > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From netwarrior863 at gmail.com Wed Aug 29 02:26:57 2012 From: netwarrior863 at gmail.com (Net Warrior) Date: Tue, 28 Aug 2012 21:26:57 -0300 Subject: Notification did not execute In-Reply-To: References: Message-ID: Thanks for your advice, I know what you mean, but this is not the case unfortunately, In the logs I can see the 3 time check was reached and the alarm did not fired, now the server is up and I did not get the notification the server is back on line either. Is critical and not SOFT for the host and the service [1346193488] HOST ALERT: hostname;DOWN;HARD;3;(Host Check Timed Out) [1346193328] SERVICE ALERT: hostname;SSH;CRITICAL;HARD;3;CRITICAL - Socket timeout after 30 seconds [1346198377] HOST ALERT: hostname;UP;SOFT;3;PING OK - Packet loss = 0%, RTA = 4.84 ms This is weird. Thanks for your time and support Regards 2012/8/28 Travis Runyard : > Your should look at the log before the service notification was suppressed > because the host was down. I'm 90% sure the reason why your host down > notification was not sent was because the host was in a soft state type and > came back online before it was determined to be in a hard state. And you > didn't post your linux-server template config so you will have to check your > and retry_interval definition. > > For my host objects I set a retry_interval of 1 and max_check_attemps of 2 > in the template so I get notified a little quicker when a host goes down. > > http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html > > -Travis Runyard > > On Tue, Aug 28, 2012 at 4:39 PM, Net Warrior > wrote: >> >> Hi there guys. >> >> I have face something weird, I did not get a notificationn of a down >> state for a particular host, >> this is the host config. >> >> define service{ >> use local-service ; Name >> of service template to use >> host_name hostname >> service_description SSH >> check_command check_ssh >> flap_detection_enabled 0 >> notifications_enabled 1 >> notification_options w,u,r,c >> check_period 24x7 >> check_interval 1 >> max_check_attempts 3 >> first_notification_delay 0 >> notification_interval 10 >> } >> >> >> >> define host{ >> use linux-server ; Name of host >> template to use >> ; This host >> definition will inherit all variables that are defined >> ; in (or >> inherited by) the linux-server host template definition. >> host_name hostname >> alias the alias >> address x.x.x.x >> contact_groups admins >> contacts nagiosadmin >> check_interval 1 >> max_check_attempts 3 >> notification_interval 10 >> flap_detection_enabled 0 >> first_notification_delay 0 >> } >> >> and in the logs I got >> [1346196987.097821] [032.0] [pid=21145] ** Service Notification >> Attempt ** Host: 'hostname', Service: 'SSH', Type: 0, Options: 0, >> Current State: 2, Last Notification: Wed Dec 31 21:00:00 1969 >> [1346196987.097843] [032.1] [pid=21145] The host is either down or >> unreachable, so we won't notify contacts about this service. >> [1346196987.097851] [032.0] [pid=21145] Notification viability test >> failed. No notification will be sent out. >> >> The host is either down or unreachable --- Of coure, so why the >> notification was not fired? >> >> Any idea what could be wrong?, I got some notification with other host >> and all have the same configuration, I have already restarted nagios >> >> Thanks for your time and support >> Best regards. >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at 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 > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From travisrunyard at gmail.com Wed Aug 29 03:26:37 2012 From: travisrunyard at gmail.com (Travis Runyard) Date: Tue, 28 Aug 2012 18:26:37 -0700 Subject: Notification did not execute In-Reply-To: References: Message-ID: That is really strange. Have you tried changing its ip to an invalid one and see if you can recreate the problem? On Aug 28, 2012 5:29 PM, "Net Warrior" wrote: > Thanks for your advice, I know what you mean, but this is not the case > unfortunately, In the logs I can see the 3 time check was reached and > the alarm did not fired, now the server is up and I did not get the > notification the server is back on line either. > > Is critical and not SOFT for the host and the service > [1346193488] HOST ALERT: hostname;DOWN;HARD;3;(Host Check Timed Out) > [1346193328] SERVICE ALERT: hostname;SSH;CRITICAL;HARD;3;CRITICAL - > Socket timeout after 30 seconds > > [1346198377] HOST ALERT: hostname;UP;SOFT;3;PING OK - Packet loss = > 0%, RTA = 4.84 ms > > This is weird. > > Thanks for your time and support > Regards > > > 2012/8/28 Travis Runyard : > > Your should look at the log before the service notification was > suppressed > > because the host was down. I'm 90% sure the reason why your host down > > notification was not sent was because the host was in a soft state type > and > > came back online before it was determined to be in a hard state. And you > > didn't post your linux-server template config so you will have to check > your > > and retry_interval definition. > > > > For my host objects I set a retry_interval of 1 and max_check_attemps of > 2 > > in the template so I get notified a little quicker when a host goes down. > > > > http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html > > > > -Travis Runyard > > > > On Tue, Aug 28, 2012 at 4:39 PM, Net Warrior > > wrote: > >> > >> Hi there guys. > >> > >> I have face something weird, I did not get a notificationn of a down > >> state for a particular host, > >> this is the host config. > >> > >> define service{ > >> use local-service ; Name > >> of service template to use > >> host_name hostname > >> service_description SSH > >> check_command check_ssh > >> flap_detection_enabled 0 > >> notifications_enabled 1 > >> notification_options w,u,r,c > >> check_period 24x7 > >> check_interval 1 > >> max_check_attempts 3 > >> first_notification_delay 0 > >> notification_interval 10 > >> } > >> > >> > >> > >> define host{ > >> use linux-server ; Name of host > >> template to use > >> ; This host > >> definition will inherit all variables that are defined > >> ; in (or > >> inherited by) the linux-server host template definition. > >> host_name hostname > >> alias the alias > >> address x.x.x.x > >> contact_groups admins > >> contacts nagiosadmin > >> check_interval 1 > >> max_check_attempts 3 > >> notification_interval 10 > >> flap_detection_enabled 0 > >> first_notification_delay 0 > >> } > >> > >> and in the logs I got > >> [1346196987.097821] [032.0] [pid=21145] ** Service Notification > >> Attempt ** Host: 'hostname', Service: 'SSH', Type: 0, Options: 0, > >> Current State: 2, Last Notification: Wed Dec 31 21:00:00 1969 > >> [1346196987.097843] [032.1] [pid=21145] The host is either down or > >> unreachable, so we won't notify contacts about this service. > >> [1346196987.097851] [032.0] [pid=21145] Notification viability test > >> failed. No notification will be sent out. > >> > >> The host is either down or unreachable --- Of coure, so why the > >> notification was not fired? > >> > >> Any idea what could be wrong?, I got some notification with other host > >> and all have the same configuration, I have already restarted nagios > >> > >> Thanks for your time and support > >> Best regards. > >> > >> > >> > ------------------------------------------------------------------------------ > >> Live Security Virtual Conference > >> Exclusive live event will cover all the ways today's security and > >> threat landscape has changed and how IT managers can respond. > Discussions > >> will include endpoint security, mobile security and the latest in > malware > >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >> _______________________________________________ > >> Nagios-users mailing list > >> Nagios-users at 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 > > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at 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 > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From kaushalshriyan at gmail.com Wed Aug 29 04:13:08 2012 From: kaushalshriyan at gmail.com (Kaushal Shriyan) Date: Wed, 29 Aug 2012 07:43:08 +0530 Subject: sms alert notification in Nagios 3.4.1 In-Reply-To: References: Message-ID: On Wed, Aug 29, 2012 at 5:53 AM, Travis Runyard wrote: > As Net Warrier said, using your phone company's email-to-text service is > tons easier than setting up your own sms/mms server. I've tried nagios_csmpp > plugin but never got it to work. You need to have an SMPP gateway which you > typically would need to pay for. Verizon offers the ##########@vtext.com > service so I have nagios send a notification to that address for critical > systems. > > Travis Runyard > Hi Travis, Please share me the commands details as mentioned in commands.cfg as per Nagios 3.4.1 version. Thanks and Regards, Kaushal > > On Tue, Aug 28, 2012 at 5:06 PM, Net Warrior > wrote: >> >> Hi >> I use my own internal sms system to send alerts, long time ago I use >> the mobile company service to send >> and email in a format like 84848484 at sms.company.com >> >> You only have to define your own command or use the one already >> defined in command.cfg >> If you want I can share with you how I did it, it is easy. >> >> but basically after you define the command you define in contacts.cfg >> >> srvice_notification_commands send-sms-service,notify-service-by-email >> host_notification_commands send-sms-host,notify-host-by-email >> >> send-sms is my own defined command which fires up lynx pointing to an >> intranet where the >> sms service runs. >> >> Regards >> >> >> 2012/8/28 Kaushal Shriyan : >> > Hi, >> > >> > Any example or any docs which explains to set sms Service/Host UP/Down >> > Notification alert in Nagios core 3.4.1? >> > >> > Regards, >> > >> > Kaushal >> > >> > >> > ------------------------------------------------------------------------------ >> > Live Security Virtual Conference >> > Exclusive live event will cover all the ways today's security and >> > threat landscape has changed and how IT managers can respond. >> > Discussions >> > will include endpoint security, mobile security and the latest in >> > malware >> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > _______________________________________________ >> > Nagios-users mailing list >> > Nagios-users at 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 >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at 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 > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From travisrunyard at gmail.com Wed Aug 29 06:09:00 2012 From: travisrunyard at gmail.com (Travis Runyard) Date: Tue, 28 Aug 2012 21:09:00 -0700 Subject: sms alert notification in Nagios 3.4.1 In-Reply-To: References: Message-ID: It is setup the same as any email address defined in contacs.cfg. thats why it is so easy On Aug 28, 2012 7:16 PM, "Kaushal Shriyan" wrote: > On Wed, Aug 29, 2012 at 5:53 AM, Travis Runyard > wrote: > > As Net Warrier said, using your phone company's email-to-text service is > > tons easier than setting up your own sms/mms server. I've tried > nagios_csmpp > > plugin but never got it to work. You need to have an SMPP gateway which > you > > typically would need to pay for. Verizon offers the ##########@vtext.com > > service so I have nagios send a notification to that address for critical > > systems. > > > > Travis Runyard > > > > Hi Travis, > > Please share me the commands details as mentioned in commands.cfg as > per Nagios 3.4.1 version. > > Thanks and Regards, > > Kaushal > > > > > > On Tue, Aug 28, 2012 at 5:06 PM, Net Warrior > > wrote: > >> > >> Hi > >> I use my own internal sms system to send alerts, long time ago I use > >> the mobile company service to send > >> and email in a format like 84848484 at sms.company.com > >> > >> You only have to define your own command or use the one already > >> defined in command.cfg > >> If you want I can share with you how I did it, it is easy. > >> > >> but basically after you define the command you define in contacts.cfg > >> > >> srvice_notification_commands send-sms-service,notify-service-by-email > >> host_notification_commands send-sms-host,notify-host-by-email > >> > >> send-sms is my own defined command which fires up lynx pointing to an > >> intranet where the > >> sms service runs. > >> > >> Regards > >> > >> > >> 2012/8/28 Kaushal Shriyan : > >> > Hi, > >> > > >> > Any example or any docs which explains to set sms Service/Host UP/Down > >> > Notification alert in Nagios core 3.4.1? > >> > > >> > Regards, > >> > > >> > Kaushal > >> > > >> > > >> > > ------------------------------------------------------------------------------ > >> > Live Security Virtual Conference > >> > Exclusive live event will cover all the ways today's security and > >> > threat landscape has changed and how IT managers can respond. > >> > Discussions > >> > will include endpoint security, mobile security and the latest in > >> > malware > >> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >> > _______________________________________________ > >> > Nagios-users mailing list > >> > Nagios-users at 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 > >> > >> > >> > ------------------------------------------------------------------------------ > >> Live Security Virtual Conference > >> Exclusive live event will cover all the ways today's security and > >> threat landscape has changed and how IT managers can respond. > Discussions > >> will include endpoint security, mobile security and the latest in > malware > >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >> _______________________________________________ > >> Nagios-users mailing list > >> Nagios-users at 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 > > > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at 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 > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From s.felici at mclink.eu Wed Aug 29 09:53:01 2012 From: s.felici at mclink.eu (Simone Felici) Date: Wed, 29 Aug 2012 09:53:01 +0200 Subject: sms alert notification in Nagios 3.4.1 In-Reply-To: References: Message-ID: <503DCA5D.80101@mclink.eu> All works fine until a network issue is there. In this case you loose important sms messages. This is the mainly reason we use an sms gateway only as second choise. Attach a gsm modem on the monitoring system and send out notifications is really simple. look at smstools3.kekekasvi.com i.e. Simon Il 29/08/2012 06:09, Travis Runyard ha scritto: > It is setup the same as any email address defined in contacs.cfg. thats why it is so easy > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From netwarrior863 at gmail.com Wed Aug 29 12:54:27 2012 From: netwarrior863 at gmail.com (Net Warrior) Date: Wed, 29 Aug 2012 07:54:27 -0300 Subject: Notification did not execute In-Reply-To: References: Message-ID: Cannot do that cuz it-s a production server, I have a testing server where I test the alarms with the same configuration and it works If I find something I will let you know. Thanks 2012/8/28 Travis Runyard : > That is really strange. Have you tried changing its ip to an invalid one and > see if you can recreate the problem? > > On Aug 28, 2012 5:29 PM, "Net Warrior" wrote: >> >> Thanks for your advice, I know what you mean, but this is not the case >> unfortunately, In the logs I can see the 3 time check was reached and >> the alarm did not fired, now the server is up and I did not get the >> notification the server is back on line either. >> >> Is critical and not SOFT for the host and the service >> [1346193488] HOST ALERT: hostname;DOWN;HARD;3;(Host Check Timed Out) >> [1346193328] SERVICE ALERT: hostname;SSH;CRITICAL;HARD;3;CRITICAL - >> Socket timeout after 30 seconds >> >> [1346198377] HOST ALERT: hostname;UP;SOFT;3;PING OK - Packet loss = >> 0%, RTA = 4.84 ms >> >> This is weird. >> >> Thanks for your time and support >> Regards >> >> >> 2012/8/28 Travis Runyard : >> > Your should look at the log before the service notification was >> > suppressed >> > because the host was down. I'm 90% sure the reason why your host down >> > notification was not sent was because the host was in a soft state type >> > and >> > came back online before it was determined to be in a hard state. And you >> > didn't post your linux-server template config so you will have to check >> > your >> > and retry_interval definition. >> > >> > For my host objects I set a retry_interval of 1 and max_check_attemps of >> > 2 >> > in the template so I get notified a little quicker when a host goes >> > down. >> > >> > http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html >> > >> > -Travis Runyard >> > >> > On Tue, Aug 28, 2012 at 4:39 PM, Net Warrior >> > wrote: >> >> >> >> Hi there guys. >> >> >> >> I have face something weird, I did not get a notificationn of a down >> >> state for a particular host, >> >> this is the host config. >> >> >> >> define service{ >> >> use local-service ; Name >> >> of service template to use >> >> host_name hostname >> >> service_description SSH >> >> check_command check_ssh >> >> flap_detection_enabled 0 >> >> notifications_enabled 1 >> >> notification_options w,u,r,c >> >> check_period 24x7 >> >> check_interval 1 >> >> max_check_attempts 3 >> >> first_notification_delay 0 >> >> notification_interval 10 >> >> } >> >> >> >> >> >> >> >> define host{ >> >> use linux-server ; Name of host >> >> template to use >> >> ; This host >> >> definition will inherit all variables that are defined >> >> ; in (or >> >> inherited by) the linux-server host template definition. >> >> host_name hostname >> >> alias the alias >> >> address x.x.x.x >> >> contact_groups admins >> >> contacts nagiosadmin >> >> check_interval 1 >> >> max_check_attempts 3 >> >> notification_interval 10 >> >> flap_detection_enabled 0 >> >> first_notification_delay 0 >> >> } >> >> >> >> and in the logs I got >> >> [1346196987.097821] [032.0] [pid=21145] ** Service Notification >> >> Attempt ** Host: 'hostname', Service: 'SSH', Type: 0, Options: 0, >> >> Current State: 2, Last Notification: Wed Dec 31 21:00:00 1969 >> >> [1346196987.097843] [032.1] [pid=21145] The host is either down or >> >> unreachable, so we won't notify contacts about this service. >> >> [1346196987.097851] [032.0] [pid=21145] Notification viability test >> >> failed. No notification will be sent out. >> >> >> >> The host is either down or unreachable --- Of coure, so why the >> >> notification was not fired? >> >> >> >> Any idea what could be wrong?, I got some notification with other host >> >> and all have the same configuration, I have already restarted nagios >> >> >> >> Thanks for your time and support >> >> Best regards. >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Live Security Virtual Conference >> >> Exclusive live event will cover all the ways today's security and >> >> threat landscape has changed and how IT managers can respond. >> >> Discussions >> >> will include endpoint security, mobile security and the latest in >> >> malware >> >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> >> _______________________________________________ >> >> Nagios-users mailing list >> >> Nagios-users at 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 >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > Live Security Virtual Conference >> > Exclusive live event will cover all the ways today's security and >> > threat landscape has changed and how IT managers can respond. >> > Discussions >> > will include endpoint security, mobile security and the latest in >> > malware >> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > _______________________________________________ >> > Nagios-users mailing list >> > Nagios-users at 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 >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at 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 > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From cbeattie at geninfo.com Wed Aug 29 20:42:20 2012 From: cbeattie at geninfo.com (Chris Beattie) Date: Wed, 29 Aug 2012 14:42:20 -0400 Subject: Are macros allowed inside custom variables? Message-ID: <503E628C.4050802@geninfo.com> Are macros allowed to be used inside custom variables? I'm using Nagios 3.2.3. I was experimenting with using custom variables in host definitions for clusters. I couldn't figure out if there was a way to make this work. It didn't seem to matter how I escaped the $s or not, whether I used $_hostwarn$ or just $_warn$, or if I defined new commands with the custom variables in place of $ARGn$. I already have cluster checks which don't use custom variables and work fine, and other service checks which use custom variables from the host for parameters and also work fine. One of my working cluster checks returns this: CLUSTER OK: dmz_cluster_1: 3 ok, 0 warning, 0 unknown, 0 critical However, I set up another check for the same cluster using custom variables, and it returns this instead: CLUSTER CRITICAL: dmz_cluster_1_foo: 1 ok, 0 warning, 0 unknown, 0 critical Here's an example of what I was trying to accomplish: define host { use esx-server name esx-cluster host_groups esx_clusters check_command check_cluster!host!@$_warn$:!@$_crit$:!$_hostcluster$ register 0 } define host { use esx-cluster host_name esx_cluster_1 alias esx_cluster_1 parents parent1,parent2,parent3 _warn 1 _crit 2 _hostcluster $HOSTSTATEID:parent1$,$HOSTSTATEID:parent2$,$HOSTSTATEID:parent3$ _servicecluster $SERVICESTATEID:parent1:Ping$,$SERVICESTATEID:parent2:Ping$,$SERVICESTATEID:parent3:Ping$ } define service { use standard_service host_name esx_cluster_1 service_description cluster_health display_name cluster_health check_command check_cluster!service!@$_warn$:!@$_crit$:!$_servicecluster$ } define command { command_name check_cluster command_line $USER1$/check_cluster --$ARG1$ --label=$HOSTNAME$ --warning=$ARG2$ --critical=$ARG3$ --data=$ARG4$ } -- -Chris Nothing in this message is intended to make or accept an offer or to form a contract, except that an attachment that is an image of a contract bearing the signature of an officer of our company may be or become a contract. This message (including any attachments) is intended only for the use of the individual or entity to whom it is addressed. It may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, we hereby notify you that any use, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this message in error, please notify us immediately by telephone and delete this message immediately. Thank you. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From support at voipbusiness.us Thu Aug 30 00:29:38 2012 From: support at voipbusiness.us (Tech Support) Date: Wed, 29 Aug 2012 18:29:38 -0400 Subject: Remote event handlers using NRPE Message-ID: <006e01cd8635$c7865270$5692f750$@us> All; I'm trying to setup event handlers on remote machines that I am monitoring using NRPE to restart dead or hung services. I've been reading up on a few how-to's I found online but they all seem to require that NRPE be compiled with support for command arguments. Since everything I read about NRPE says that allowing command arguments is a very bad idea, I was wondering if it is even possible to execute remote event handlers without having support for it. Thanks; John -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From nsmith at lamppostgroup.com Thu Aug 30 01:47:50 2012 From: nsmith at lamppostgroup.com (Nick Smith) Date: Wed, 29 Aug 2012 19:47:50 -0400 Subject: Remote event handlers using NRPE In-Reply-To: <006e01cd8635$c7865270$5692f750$@us> References: <006e01cd8635$c7865270$5692f750$@us> Message-ID: I dont have an answer about your NRPE question, but if i had to guess i would say its not possible with out support compiled in. I did recently find this however: http://www.edcint.co.nz/checkwmiplus/ I have it running all kinds of checks via WMI on my domain and it has the ability to restart a hung or dead process, i would recommend you check it out, i like it alot better than NRPE and there is no client to install. Hope that helps. On Wed, Aug 29, 2012 at 6:29 PM, Tech Support wrote: > All; > > I?m trying to setup event handlers on remote machines that I am > monitoring using NRPE to restart dead or hung services. I?ve been reading up > on a few how-to?s I found online but they all seem to require that NRPE be > compiled with support for command arguments. Since everything I read about > NRPE says that allowing command arguments is a very bad idea, I was > wondering if it is even possible to execute remote event handlers without > having support for it. > > Thanks; > > John > > > > > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 -- --------------- Nick Smith Lamp Post Group IT Support Ext - 800 nsmith at lamppostgroup.com ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From daniel.wittenberg.r0ko at statefarm.com Thu Aug 30 02:54:45 2012 From: daniel.wittenberg.r0ko at statefarm.com (Daniel Wittenberg) Date: Thu, 30 Aug 2012 00:54:45 +0000 Subject: Remote event handlers using NRPE In-Reply-To: References: <006e01cd8635$c7865270$5692f750$@us> Message-ID: <30955566-CBCD-4FD3-947E-2E8B11F28AB5@statefarm.com> WMI assumes you are running Windows? With NRPE I haven't seen a way to do it without being pass arguments. I'm just careful with scripts that can take arguments that they scrub what's being passed in. Dan On Aug 29, 2012, at 6:47 PM, Nick Smith wrote: > I dont have an answer about your NRPE question, but if i had to guess > i would say its not possible with out support compiled in. > > I did recently find this however: > > http://www.edcint.co.nz/checkwmiplus/ > > I have it running all kinds of checks via WMI on my domain and it has > the ability to restart a hung or dead process, i would recommend you > check it out, i like it alot better than NRPE and there is no client > to install. > > Hope that helps. > > On Wed, Aug 29, 2012 at 6:29 PM, Tech Support wrote: >> All; >> >> I?m trying to setup event handlers on remote machines that I am >> monitoring using NRPE to restart dead or hung services. I?ve been reading up >> on a few how-to?s I found online but they all seem to require that NRPE be >> compiled with support for command arguments. Since everything I read about >> NRPE says that allowing command arguments is a very bad idea, I was >> wondering if it is even possible to execute remote event handlers without >> having support for it. >> >> Thanks; >> >> John >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at 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 > > > > -- > --------------- > Nick Smith > Lamp Post Group > IT Support > Ext - 800 > nsmith at lamppostgroup.com > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From sjcarr at gmail.com Thu Aug 30 09:23:06 2012 From: sjcarr at gmail.com (Steven Carr) Date: Thu, 30 Aug 2012 08:23:06 +0100 Subject: Remote event handlers using NRPE In-Reply-To: <30955566-CBCD-4FD3-947E-2E8B11F28AB5@statefarm.com> References: <006e01cd8635$c7865270$5692f750$@us> <30955566-CBCD-4FD3-947E-2E8B11F28AB5@statefarm.com> Message-ID: You could create an NRPE command who's sole purpose is to restart a single service, that way all you do is call the command and it restarts the service. Though yes, if you have lots of services to restart then you are going to have to configure lots of separate NRPE commands. Steve On 30 August 2012 01:54, Daniel Wittenberg wrote: > WMI assumes you are running Windows? > > With NRPE I haven't seen a way to do it without being pass arguments. I'm just careful with scripts that can take arguments that they scrub what's being passed in. > > Dan > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From patrick.morris at hp.com Thu Aug 30 12:30:50 2012 From: patrick.morris at hp.com (Patrick Morris) Date: Thu, 30 Aug 2012 03:30:50 -0700 Subject: uptime check returns wrong result In-Reply-To: References: Message-ID: <503F40DA.5060102@hp.com> On 8/9/2012 1:23 AM, Andreas Brandino wrote: > Hi all, > > I am using check_uptime.pl from here: > http://exchange.nagios.org/directory/Plugins/System-Metrics/Uptime/check_uptime--2F-check_snmp_uptime/details > > The problem that I face is that this service caclulates SNMP service > uptime instead of windows. > If I restart the SNMP service (and not the server) , plugin > > This problem happen only to windows and not to linux or cisco devices. > > The check commands are: > check_uptime.pl -H linux_server -C community > -w 0 -c 15 -T unix-host > check_uptime.pl -H windows_server -C > community -w 0 -c 15 -T win > > Any ideas? > Is the plugin not working as expected? It sounds to me like the plugin is working as expected, but that your Windows boxes simply don't report uptime correctly via SNMP. However, you seem to have left out the part where you describe exactly what your issue us. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From patrick.morris at hp.com Thu Aug 30 12:34:49 2012 From: patrick.morris at hp.com (Patrick Morris) Date: Thu, 30 Aug 2012 03:34:49 -0700 Subject: How to deal with hosts that are not always on In-Reply-To: <20120729085102.GA24668@torres.zugschlus.de> References: <20120729085102.GA24668@torres.zugschlus.de> Message-ID: <503F41C9.6090500@hp.com> On 7/29/2012 1:51 AM, Marc Haber wrote: > Hi, > > I have a number of hosts that are not always turned on, such as my > Notebook, my home server (which sleeps if not used) and a number of > test VMs. To get a reasonable volume of checks in my test installation > of Nagios, I would like to have those machines monitored by it. > > Obviously, I have notifications for those hosts turned off. This, > however, leads to non-zero numbers in the critical, warning and > unknown fields in the CGI, which gives a wrong impression of my health > status since it is normal and expected that those hosts/services are > down. > > Is there any solution for this dilemma? Can I have Nagios monitor > hosts without reporting them as down when they are down? > > I know this may sound strange, but I would like to have statistics > about how long the machines have been up and when. > > Greetings > Marc > If you want to know how long the machines have been up and when, don't you also need to know when they're not up? I'm not sure how you'd get any idea of your uptimes if you completely ignore downtimes -- Nagios would think they'd always been up, and you'd have no usable statistics. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From werner.flamme at ufz.de Thu Aug 30 13:11:45 2012 From: werner.flamme at ufz.de (Werner Flamme) Date: Thu, 30 Aug 2012 13:11:45 +0200 Subject: How to deal with hosts that are not always on In-Reply-To: <20120729085102.GA24668@torres.zugschlus.de> References: <20120729085102.GA24668@torres.zugschlus.de> Message-ID: <503F4A71.7050303@ufz.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Marc Haber [29.07.2012 10:51]: > Hi, > > I have a number of hosts that are not always turned on, such as my > Notebook, my home server (which sleeps if not used) and a number > of test VMs. To get a reasonable volume of checks in my test > installation of Nagios, I would like to have those machines > monitored by it. > > Obviously, I have notifications for those hosts turned off. This, > however, leads to non-zero numbers in the critical, warning and > unknown fields in the CGI, which gives a wrong impression of my > health status since it is normal and expected that those > hosts/services are down. > > Is there any solution for this dilemma? Can I have Nagios monitor > hosts without reporting them as down when they are down? > > I know this may sound strange, but I would like to have statistics > about how long the machines have been up and when. Marc, we use action handler scripts to schedule downtime in this case. As an example, a downtime for a service is scheduled for 6 minutes if $1 is CRITICAL and $2 is HARD. That is the maximum amount of time this service needs to be restarted (via nrpe, in the same script): /usr/bin/printf "[%lu] SCHEDULE_SVC_DOWNTIME;host5.example.com;Host5;`date +%s`;$((`date +%s` + 6 * 60));1;0;0;serveradmin;Service on Host5 is restarted\n" `date +%s` > /var/spool/nagios/nagios.cmd Following , you can send the command DEL_SVC_DOWNTIME if the service is up before the scheduled downtime ends. The same should be possible with SCHEDULE_HOST_DOWNTIME or SCHEDULE_HOST_SVC_DOWNTIME and DEL_HOST_DOWNTIME. So Nagios will still see the downtime, but since it is marked as scheduled downtime, your statistics may look better ;-) HTH Werner - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlA/SnEACgkQk33Krq8b42NDRACaA1Gr5NS/FqWEWaP/qrb/ST6k HocAni3ka4fC+tilNYBefzlz0IFAsDT7 =fZIL -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mh+nagios-users at zugschlus.de Thu Aug 30 13:16:44 2012 From: mh+nagios-users at zugschlus.de (Marc Haber) Date: Thu, 30 Aug 2012 13:16:44 +0200 Subject: How to deal with hosts that are not always on In-Reply-To: <503F41C9.6090500@hp.com> References: <20120729085102.GA24668@torres.zugschlus.de> <503F41C9.6090500@hp.com> Message-ID: <20120830111644.GA19605@torres.zugschlus.de> On Thu, Aug 30, 2012 at 03:34:49AM -0700, Patrick Morris wrote: > On 7/29/2012 1:51 AM, Marc Haber wrote: > > I have a number of hosts that are not always turned on, such as my > > Notebook, my home server (which sleeps if not used) and a number of > > test VMs. To get a reasonable volume of checks in my test installation > > of Nagios, I would like to have those machines monitored by it. > > > > Obviously, I have notifications for those hosts turned off. This, > > however, leads to non-zero numbers in the critical, warning and > > unknown fields in the CGI, which gives a wrong impression of my health > > status since it is normal and expected that those hosts/services are > > down. > > > > Is there any solution for this dilemma? Can I have Nagios monitor > > hosts without reporting them as down when they are down? > > > > I know this may sound strange, but I would like to have statistics > > about how long the machines have been up and when. > > > If you want to know how long the machines have been up and when, don't > you also need to know when they're not up? I'm not sure how you'd get > any idea of your uptimes if you completely ignore downtimes -- Nagios > would think they'd always been up, and you'd have no usable statistics. You're right, but this is only my play installation, so it delivers not useable statistics anyway. Otoh, the case "host up, but no ssh server" would be a reportable offense, for example. Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 31958061 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 31958062 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mh+nagios-users at zugschlus.de Thu Aug 30 13:27:52 2012 From: mh+nagios-users at zugschlus.de (Marc Haber) Date: Thu, 30 Aug 2012 13:27:52 +0200 Subject: How to deal with hosts that are not always on In-Reply-To: <503F4A71.7050303@ufz.de> References: <20120729085102.GA24668@torres.zugschlus.de> <503F4A71.7050303@ufz.de> Message-ID: <20120830112752.GB19605@torres.zugschlus.de> On Thu, Aug 30, 2012 at 01:11:45PM +0200, Werner Flamme wrote: > we use action handler scripts to schedule downtime in this case. very dirty hack, but neat. Thanks. Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 31958061 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 31958062 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From netwarrior863 at gmail.com Thu Aug 30 14:12:59 2012 From: netwarrior863 at gmail.com (Net Warrior) Date: Thu, 30 Aug 2012 09:12:59 -0300 Subject: Custom Remote Commands Message-ID: Hi There Just was wondering if there is a way to customize the list of host commands list that are shown on the right column when you click on a host. There you can see, show the host in the map, send custom host notification. I'd like to add something like, reboot the server for example, that would be very usefull, maybe someone manage to do this this way or another. The problem is when the server is not accessible over ssh but pingable, so I guess that with can use ipmi, or fired reboot command by other means. Any thought on this are appreciated. Thanks ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From ae at op5.se Thu Aug 30 14:26:58 2012 From: ae at op5.se (Andreas Ericsson) Date: Thu, 30 Aug 2012 14:26:58 +0200 Subject: Heads up for config changes in Nagios 4 Message-ID: <503F5C12.4010009@op5.se> Currently, with Nagios 3, it's possible to have cyclic group includes, like this: define hostgroup{ hostgroup_name HG1 alias Hostgroup 1 hostgroup_members HG3 } define hostgroup{ hostgroup_name HG2 alias Hostgroup 2 hostgroup_members HG1 } define hostgroup{ hostgroup_name HG3 alias Hostgroup 3 hostgroup_members HG2 } With Nagios 4, that will generate an error. Currently the behaviour is that the first hostgroup, as determined by alphabetical sorting, will get the members of its included groups, but the later ones in the sorting will not get the members of the previous ones, which is surprising to say the least. This will work the same for all grouptypes. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From T.AtLee at cfertech.com Thu Aug 30 18:17:26 2012 From: T.AtLee at cfertech.com (Tim AtLee) Date: Thu, 30 Aug 2012 10:17:26 -0600 Subject: Include extra information on service alert Message-ID: <0421E521817FC542AF7BA8F20E099B81012ABCC344@exchsrv.cfertech.com> Hello Mdadm on one specific host has been reporting failed disks, and falling over to the spare. I get an event notification when this happens (Nagios no longer sees 2 devices in the U state), but I would like to include the output of cat /proc/mdstat with the email notification. I am thinking that the best approach is to write a custom notification command to include this data, but I'm not sure if there are already hooks for this already. I am using Nagios within OMD and CheckMK. Thanks in advance, Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From patrick.morris at hp.com Thu Aug 30 20:27:20 2012 From: patrick.morris at hp.com (Patrick Morris) Date: Thu, 30 Aug 2012 11:27:20 -0700 Subject: Notification did not execute In-Reply-To: References: Message-ID: <503FB088.4020802@hp.com> On 8/29/2012 3:54 AM, Net Warrior wrote: > Cannot do that cuz it-s a production server, I have a testing server > where I test the alarms with the same configuration and it works > If I find something I will let you know. > > Thanks > > > 2012/8/28 Travis Runyard : >> That is really strange. Have you tried changing its ip to an invalid one and >> see if you can recreate the problem? >> >> On Aug 28, 2012 5:29 PM, "Net Warrior" wrote: >>> Thanks for your advice, I know what you mean, but this is not the case >>> unfortunately, In the logs I can see the 3 time check was reached and >>> the alarm did not fired, now the server is up and I did not get the >>> notification the server is back on line either. >>> >>> Is critical and not SOFT for the host and the service >>> [1346193488] HOST ALERT: hostname;DOWN;HARD;3;(Host Check Timed Out) >>> [1346193328] SERVICE ALERT: hostname;SSH;CRITICAL;HARD;3;CRITICAL - >>> Socket timeout after 30 seconds >>> >>> [1346198377] HOST ALERT: hostname;UP;SOFT;3;PING OK - Packet loss = >>> 0%, RTA = 4.84 ms >>> >>> This is weird. >>> >>> Thanks for your time and support >>> Regards >>> >>> >>> 2012/8/28 Travis Runyard : >>>> Your should look at the log before the service notification was >>>> suppressed >>>> because the host was down. I'm 90% sure the reason why your host down >>>> notification was not sent was because the host was in a soft state type >>>> and >>>> came back online before it was determined to be in a hard state. And you >>>> didn't post your linux-server template config so you will have to check >>>> your >>>> and retry_interval definition. >>>> >>>> For my host objects I set a retry_interval of 1 and max_check_attemps of >>>> 2 >>>> in the template so I get notified a little quicker when a host goes >>>> down. >>>> >>>> http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html >>>> >>>> -Travis Runyard >>>> I would also check to make sure host or global notifications were not disabled at that point in time, and that flap detection had not kicked in. Those are the most likely reasons I can think of for no notification to happen even though the host was in a hard critical state. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From yu.watanabe at jp.fujitsu.com Fri Aug 31 04:06:07 2012 From: yu.watanabe at jp.fujitsu.com (Yu Watanabe) Date: Fri, 31 Aug 2012 11:06:07 +0900 Subject: Heads up for config changes in Nagios 4 In-Reply-To: <503F5C12.4010009@op5.se> References: <503F5C12.4010009@op5.se> Message-ID: <201208310206.AA05628@S2007337.jp.fujitsu.com> First time hearing about Nagios 4. Is it coming out soon? Thanks, Yu Andreas Ericsson ????????: >Currently, with Nagios 3, it's possible to have cyclic group includes, >like this: >define hostgroup{ > hostgroup_name HG1 > alias Hostgroup 1 > hostgroup_members HG3 >} >define hostgroup{ > hostgroup_name HG2 > alias Hostgroup 2 > hostgroup_members HG1 >} >define hostgroup{ > hostgroup_name HG3 > alias Hostgroup 3 > hostgroup_members HG2 >} > >With Nagios 4, that will generate an error. Currently the behaviour >is that the first hostgroup, as determined by alphabetical sorting, >will get the members of its included groups, but the later ones in >the sorting will not get the members of the previous ones, which is >surprising to say the least. > >This will work the same for all grouptypes. > >-- >Andreas Ericsson andreas.ericsson at 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. > >------------------------------------------------------------------------------ >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >Nagios-users mailing list >Nagios-users at 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 > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Peter.Shankland at ricoh-rpl.com Fri Aug 31 05:01:10 2012 From: Peter.Shankland at ricoh-rpl.com (Peter.Shankland at ricoh-rpl.com) Date: Fri, 31 Aug 2012 04:01:10 +0100 Subject: Peter Shankland is out of the office. Message-ID: I will be out of the office starting 31/08/2012 and will not return until 03/09/2012. Please contact Tom Barnes if the request is urgent: Tom Barnes tom.barnes at ricoh-rpl.com 01952 205362 Regards. _________________________________________ Peter Shankland TECHNICAL NETWORK SPECIALIST IT DEPARTMENT Ricoh UK Products Limited Priorslee Telford, TF2 9NS UK Tel: +44 (0) 1952 290090 DD:+44 (0) 1952 205160 F:+44 (0) 1952 213100 M:+44 (0) 7919 444077 Peter.Shankland at ricoh-rpl.com (Embedded image moved to file: pic12111.gif) (Embedded image moved to file: pic19232.jpg) Please do not print this email unless absolutely necessary in order to save paper and energy, and you will contribute to resource conservation and CO2 reduction. This email including attachments is intended for the addressee(s) only. It may be labelled confidential/ private and contain confidential/private information. Please respect the wishes of the sender in the way you treat this email and the information contained within. If in doubt clarify the wishes of the sender before acting. If you have received this email in error, you may not review, copy or forward this message in whole or in part. Ricoh UK Products employees should delete from their system and notify us of the error via the ISMS Security Incident Reporting database. External recipients should delete from their system and alert us via email, advising the name of the sender and the time and date of receipt. Any views expressed in this email may not necessarily reflect those of Ricoh UK Products Ltd. You should ensure that the onward transmission, opening or use of this message or attachments will not adversely affect your system or data and carry out anti-virus checks before downloading. Internet communications are not secure and therefore Ricoh UK Products Ltd accepts no responsibility for any direct, indirect or consequential damage resulting from the transmission of this message. Registered in England No. 1763860 Registered Office: Ricoh UK Products Limited, Priorslee, Telford, Shropshire, TF2 9NS -------------- next part -------------- A non-text attachment was scrubbed... Name: pic12111.gif Type: image/gif Size: 2190 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pic19232.jpg Type: image/jpeg Size: 7544 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From ae at op5.se Fri Aug 31 11:11:04 2012 From: ae at op5.se (Andreas Ericsson) Date: Fri, 31 Aug 2012 11:11:04 +0200 Subject: Heads up for config changes in Nagios 4 In-Reply-To: <201208310206.AA05628@S2007337.jp.fujitsu.com> References: <503F5C12.4010009@op5.se> <201208310206.AA05628@S2007337.jp.fujitsu.com> Message-ID: <50407FA8.50700@op5.se> On 08/31/2012 04:06 AM, Yu Watanabe wrote: > First time hearing about Nagios 4. > > Is it coming out soon? > In a couple of weeks is the general idea. People are alpha testing it already, but some more longtime tests are required before it goes live, and for full-on production use (with no other systems doing automated checking), I'd wait until Nagios 4.0.1, when we've ironed out any remaining bugs that we missed in testing. op5 will do a release based on Nagios 4 in december, so I'll have bugfixing the core as my top priority from the release until then. Because of that, it's likely 4.0.1 will be out before christmas. Unless 4.0 happens to be bugfree ofcourse. Not impossible, but very unlikely with 20k lines added and 30k lines removed. In the meantime, testing of config parsing and the new check engine is ofcourse very helpful. I'd prefer to get anomaly-reports on mail to nagios-devel, with ae at op5.com on the cc-list so I don't miss out on anything serious. -- Andreas Ericsson andreas.ericsson at 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. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From deibertine at yahoo.com Fri Aug 31 13:34:56 2012 From: deibertine at yahoo.com (Dei Bertine) Date: Fri, 31 Aug 2012 04:34:56 -0700 (PDT) Subject: (no subject) Message-ID: <1346412896.97343.YahooMailNeo@web111203.mail.gq1.yahoo.com> http://www.karleenviro.com/WpDev/ikhkjskl.php?htxp=htxp -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From t-aravinth at juspay.in Fri Aug 31 13:47:38 2012 From: t-aravinth at juspay.in (Aravinth Anto) Date: Fri, 31 Aug 2012 17:17:38 +0530 Subject: (no subject) In-Reply-To: <1346412896.97343.YahooMailNeo@web111203.mail.gq1.yahoo.com> References: <1346412896.97343.YahooMailNeo@web111203.mail.gq1.yahoo.com> Message-ID: Spam!!! On Fri, Aug 31, 2012 at 5:04 PM, Dei Bertine wrote: > http://www.karleenviro.com/WpDev/ikhkjskl.php?htxp=htxp > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From werner.flamme at ufz.de Fri Aug 31 14:56:48 2012 From: werner.flamme at ufz.de (Werner Flamme) Date: Fri, 31 Aug 2012 14:56:48 +0200 Subject: (no subject) In-Reply-To: References: <1346412896.97343.YahooMailNeo@web111203.mail.gq1.yahoo.com> Message-ID: <5040B490.1070605@ufz.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Aravinth Anto [31.08.2012 13:47]: > Spam!!! Correct. And thank you very much for the complete repost, including footer and everything. - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlBAtI8ACgkQk33Krq8b42MvkACeJdLGDfKfPSrXGA2i/VMPfjbP S6MAn37U8jAy/N4zN8FHsco9yBMC4aHG =fmtl -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From ygor at comcast.net Fri Aug 31 15:21:22 2012 From: ygor at comcast.net (Dan White) Date: Fri, 31 Aug 2012 13:21:22 +0000 (UTC) Subject: (no subject) In-Reply-To: References: Message-ID: <1282544520.1283276.1346419282472.JavaMail.root@sz0126a.westchester.pa.mail.comcast.net> And you sent the spam-link out to the list for a second time. ?Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.? Bill Waterson (Calvin & Hobbes) ----- Original Message ----- From: "Aravinth Anto" Subject: Re: [Nagios-users] (no subject) Spam!!! On Fri, Aug 31, 2012 at 5:04 PM, Dei Bertine < deibertine at yahoo.com > wrote: ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Spyridon.Maniotis at nordea.com Fri Aug 31 12:01:11 2012 From: Spyridon.Maniotis at nordea.com (Spyridon.Maniotis at nordea.com) Date: Fri, 31 Aug 2012 13:01:11 +0300 Subject: Connection to nagios database Message-ID: <86F6030EE20F244FBE74AF837D718E3725702B2E7E@CCD1XM1105.ccd1.root4.net> To whom it may concern I want to get access to the Nagios XI database in order to get data and import it to Qlikview. Could you advise me on how this can be achieved? Venlig hilsen/Best regards Spyridon Maniotis Graduate Nordea, IT Capital Markets Mobil: +45 61222245 E-mail: spyridon.maniotis at nordea.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From magr50 at telia.com Fri Aug 31 21:02:44 2012 From: magr50 at telia.com (Marek Grinberg) Date: Fri, 31 Aug 2012 21:02:44 +0200 Subject: How to use check_nagios ? Message-ID: <50410A54.2020905@telia.com> Hello, I have Nagios 3.4.1 and Nagios plugins 1.4.15 installed & running in RedHat 5.8 I have defined check_nagios in commands.cfg: define command{ command_name check_nagios command_line $USER1$/check_nagios -F $ARG1$ -e $ARG2$ -C $ARG3$ # command_line $USER1$/check_nagios -F /usr/local/nagios/var/status.dat -e $ARG1$ -C /usr/local/nagios/bin/nagios and in localhost.cfg: define service{ use local-service ; Name of service template to use host_name Nagios service_description Nagios check_command check_nagios notifications_enabled check_nagios!/usr/local/nagios/var/status.dat!5!/usr/local/nagios/bin/nagios } Nagios Services in Firefox show: Nagios Notifications for this service have been disabled UNKNOWN 2012-08-31 19:24:35 0d 2h 38m 43s 4/4 Usage: Explicit check shows: # ./check_nagios -F /usr/local/nagios/var/status.dat -e 5 -C /usr/local/nagios/bin/nagios NAGIOS OK: 2 processes, status log updated 5 seconds ago What have I missed ? Marek ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From BChan at Shawcor.com Fri Aug 31 21:01:22 2012 From: BChan at Shawcor.com (Brian Chan) Date: Fri, 31 Aug 2012 15:01:22 -0400 Subject: AUTO: Chan, Brian is away from the office (returning 04/09/2012) Message-ID: I am out of the office until 04/09/2012. I will respond to your message when I return. If this is a request for support, click here to open an ITRequest--:> mailto:itrequest at shawcor.com Alternatively, all questions can be directed to the Help Desk at 416-744-5557 Brian Chan Note: This is an automated response to your message "Nagios-users Digest, Vol 75, Issue 17" sent on 08/31/2012 15:02:51. This is the only notification you will receive while this person is away. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From nagios at flatto.net Fri Aug 31 22:46:23 2012 From: nagios at flatto.net (Assaf Flatto) Date: Fri, 31 Aug 2012 21:46:23 +0100 Subject: How to use check_nagios ? In-Reply-To: <50410A54.2020905@telia.com> References: <50410A54.2020905@telia.com> Message-ID: <5041229F.2030000@flatto.net> On 31/08/12 20:02, Marek Grinberg wrote: > Hello, > > I have Nagios 3.4.1 and Nagios plugins 1.4.15 installed& running in > RedHat 5.8 > > I have defined check_nagios in commands.cfg: > define command{ > command_name check_nagios > command_line $USER1$/check_nagios -F $ARG1$ -e $ARG2$ -C $ARG3$ > # command_line $USER1$/check_nagios -F > /usr/local/nagios/var/status.dat -e $ARG1$ -C /usr/local/nagios/bin/nagios > > and in localhost.cfg: > define service{ > use local-service ; Name of service > template to use > host_name Nagios > service_description Nagios > check_command check_nagios > notifications_enabled > check_nagios!/usr/local/nagios/var/status.dat!5!/usr/local/nagios/bin/nagios > } > > Nagios Services in Firefox show: > > Nagios Notifications for this service have been disabled > UNKNOWN 2012-08-31 19:24:35 0d 2h 38m 43s 4/4 Usage: > > Explicit check shows: > # ./check_nagios -F /usr/local/nagios/var/status.dat -e 5 -C > /usr/local/nagios/bin/nagios > NAGIOS OK: 2 processes, status log updated 5 seconds ago > > What have I missed ? > > Marek > > test the command as the nagios user not as root , see what the reply is . ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users at 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