Re: [Nagios-users] RE : Sybase check on windows servers
Hi, You are right. Any command I try to run through command prompt is giving me the same error. Although its showing ok in the web interface. I do not understand why this is happening. Some examples of commands I tried to run through command prompt- ./check_nt -H machine1 -v UPTIME ./check_nt -H machine1 -v SERVICESTATE -l MSSQLSERVER Although the same command is defined in services.cfg and it is giving the right output in web interface. Please help. Lalita From: Florent HOUBART [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 26, 2007 1:11 PM To: Lalita Drolia Cc: nagios-users@lists.sourceforge.net Subject: RE : [Nagios-users] Sybase check on windows servers Hi, >I installed nsclient++. The port is open because it is performing other >checks. > >And I had tried with -p. but still the same error. Did you try the other check though NSClient in command line to be sure there is nothing we miss ? Can you send me the command you run, and some definition of other commands which are working ? Florent Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] notification delay
On Tue, 26 Jun 2007, Marc Boisis-Delavaud wrote: > I want Nagios notifiy me only if the problem is during more than 10 min. I > want not receive mail if the problem is during less. How can I do that ? Do not set notifications. But do setup escalations. Hugo. -- [EMAIL PROTECTED] http://hugo.vanderkooij.org/ This message is using 100% recycled electrons. Some men see computers as they are and say "Windows" I use computers with Linux and say "Why Windows?" (Thanks JFK, for the insight.) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] How to set the sourceaddress for all checks?
> -Original Message- > From: Brian A. Seklecki [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 26, 2007 1:58 PM > To: Marc Powell > Cc: Ingo Lantschner; Hari Sekhon; Michael Silver; nagios-users nagios- > users > Subject: RE: [Nagios-users] How to set the sourceaddress for all checks? > > Then let us end it right now. There are other, more-noble(*), battles > to fight, and my ACLs support aggregate object-groups in the mean time. Don't end it if it's important to you, just take it to the right forum where the people that actually maintain the plugins can chew on it. > *) Bacula Director, rpcbind Mmmm. Directory. That's Crunchy. I've had fun with that one before. -- Marc - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Monitoring Windows Services
Jerad, Yes. Run "check_nt --help" to see more details on what it supports. See the "-d SHOWALL" part in the output: SERVICESTATE = , Check the state of one or several services. Request a -l parameters with the following syntax: -l ,,,... You can specify -d SHOWALL in case you want to see working services in the returned string. Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jerad Riggin Sent: Tuesday, June 26, 2007 11:51 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Monitoring Windows Services I feel like i'm spamming this mail list. So far I'm monitoring a few processes & services on a Windows 2003 Server. Would there be a way to have Nagios report if any automatic service fails? Or do I need to go through and define each service? Let me know if you need more information. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] How to set the sourceaddress for all checks?
> -Original Message- > From: Brian A. Seklecki [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 26, 2007 11:50 AM > To: Marc Powell > Cc: Ingo Lantschner; Hari Sekhon; Michael Silver; nagios-users nagios- > users > Subject: RE: [Nagios-users] How to set the sourceaddress for all checks? > > > Right: it gets tricky if you're runing a shell script wrapper around a > perl script that exec()'s nc(1). You specifically invited me into this conversation. I didn't ask to be in it ;) I presumed you wanted my opinion, I gave it. Distorting what I said isn't helpful. *shrug* -- Marc - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Time-periods Issue
It's about time periods again, It's 20:00 o'clock right now and I defined a time period like this: define timeperiod{ timeperiod_name night alias Check at night only sunday 22:00-23:00 monday 22:00-23:00 tuesday 22:00-23:00 wednesday 22:00-23:00 thursday 22:00-23:00 friday 22:00-23:00 saturday 22:00-23:00 } using this settings, i restarted Nagios and it schedules all plug-ins at 22:00 without interleaving them. But if i set the timeperiod to: define timeperiod{ timeperiod_name night alias Check at night only sunday 20:15-21:15 monday 20:15-21:15 tuesday 20:15-21:15 wednesday 20:15-21:15 thursday 20:15-21:15 friday 20:15-21:15 saturday 20:15-21:15 } and restart nagios, on the web interface I can see Nagios interleaving all the checks right away. Why if i schedule it couple hours ahead Nagios doesn't interleave the chekcs but if i schedule it couple minutes ahead, it interleaves all the check? these are my configuration: service_interleave_factor=s max_service_check_spread=60 service_inter_check_delay_method=s Regards, Adi Yesaya - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_snmp_int.pl regex problems
Hi, The big problem with Windows SNMP agent, is that is puts special caracters you don't see in interface description, so putting "Network Connection$" won't work because there are control caracters after "Connection". (maybe "Connection[ [:cntrl:]]*$" would work). Single or double quote don't matter by the way. It's just to be sure the shell won't interpret caracters like ";" or "&" Your idea to check interface without "#" in it was good but not the regexp. Try : "^Intel[^2#]*$" Which means : starts (^) with "Intel" and ends ($) with a string containing any caracters that are not 2 or # ([^2#]*) Patrick http://nagios.manubulon.com -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Jason Woodward Envoyé : mardi 26 juin 2007 17:26 À : nagios-users@lists.sourceforge.net Objet : Re: [Nagios-users] check_snmp_int.pl regex problems Hi Dan, Thanks for the suggestion. That did not work, it still doesn't like the $. I have gone ahead and modified one of the check_snmp scripts to check it based on each interfaces oid. I can get the info I need now, just takes a bit more work. Jason _ Dan Eriksson wrote: > Hi Jason, > > According to this, > http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg0269 > 8.html > > It seems like you need to put single quotes instead of double quotes > like, as you want to match on "Intel(R) PRO/1000 MT Network Connection" and only this. > > Then I guess your check_command should look something like: > > /check_command check_snmp_int!'PRO/1000 MT Network Connection$' > > Hope this helps, > > Best regards, > Dan > > -Ursprungligt meddelande- > Från: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] För Jason Woodward > Skickat: den 26 juni 2007 16:08 > Till: nagios-users@lists.sourceforge.net > Ämne: [Nagios-users] check_snmp_int.pl regex problems > > I have 2 interfaces: > > Intel(R) PRO/1000 MT Network Connection > Intel(R) PRO/1000 MT Network Connection #2 > > > I need to filter out " Intel(R) PRO/1000 MT Network Connection #2" . > The following are some of the commands I have tried. > > /check_command check_snmp_int!"" > MS TCP Loopback interface:UP, Intel(R) PRO/1000 MT Network Connection > #2:DOWN, Intel(R) PRO/1000 MT Network Connection:UP: 1 int NOK : > CRITICAL/ > > this cuts out anything that matches MT, so I know that if I cut out > any interface with #, I will get what I want /check_command > check_snmp_int!"^[MT]" > MS TCP Loopback interface:UP:1 UP: OK/ > > But # doesn't work... > /check_command check_snmp_int!"^[#]" > ERROR : Unknown interface ^[#]/ > > maybe if I cut out any interface with 2 in it? > /check_command check_snmp_int!"^[2]" > ERROR : Unknown interface ^[2]/ > > this doesn't cut out anything that matches Intel, I assume something > to do with the / /check_command check_snmp_int!"^[Intel]" > Intel(R) PRO/1000 MT Network Connection #2:DOWN, Intel(R) PRO/1000 MT > Network Connection:UP: 1 int NOK : CRITICAL/ > > I can isolate "Intel(R) PRO/1000 MT Network Connection #2" > /check_command check_snmp_int!"#2" > Intel(R) PRO/1000 MT Network Connection #2:DOWN: 1 int NOK : CRITICAL/ > > /check_command check_snmp_int!"Intel(R) PRO/1000 MT Network Connection" > ERROR : Unknown interface Intel(R) PRO/1000 MT Network Connection/ > > /check_command check_snmp_int!"1000 MT Network Connection" > Intel(R) PRO/1000 MT Network Connection #2:DOWN, Intel(R) PRO/1000 MT > Network Connection:UP: 1 int NOK : CRITICAL / > > > I can use "^Intel" to get Intel at the beginning /check_command > check_snmp_int!"^Intel" > Intel(R) PRO/1000 MT Network Connection #2:DOWN, Intel(R) PRO/1000 MT > Network Connection:UP: 1 int NOK : CRITICAL/ > > Since ^ works, I figured $ would work as well. $ does not seem to work > to match at the end, and it returns with 2 $? > /check_command check_snmp_int!"Connection$" > ERROR : Unknown interface Connection$$/ > > \Z does not work > /check_command check_snmp_int!"Connection\Z" > ERROR : Unknown interface Connection\Z/ > > > I am at a loss for what to do. There seems to be an issue with #, and $. > Anyone have a solution to this? I have 15 servers with this issue. > Thanks in advance, > > Jason Woodward > > > -- > --- This SF.net email is sponsored by DB2 Express Download DB2 Express > C - the FREE version of DB2 express and take control of your XML. No > limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > - This SF.net email is sponsore
[Nagios-users] Monitoring Windows Services
I feel like i'm spamming this mail list. So far I'm monitoring a few processes & services on a Windows 2003 Server. Would there be a way to have Nagios report if any automatic service fails? Or do I need to go through and define each service? Let me know if you need more information. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] How to set the sourceaddress for all checks?
> -Original Message- > From: Brian A. Seklecki [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 26, 2007 9:50 AM > To: Ingo Lantschner; Marc Powell; Hari Sekhon; Michael Silver > Cc: nagios-users nagios-users > Subject: Re: [Nagios-users] How to set the sourceaddress for all checks? > > On Thu, 2007-06-14 at 16:30 +0200, Ingo Lantschner wrote: > > Hi, > > if I am running Nagios on a host with more than one IP address on > > I've discussed, many times in the past, the need to be able to > explicitly define the sources address that check plugins transmit from > (TCP, ICMP, UDP at the very least) as part of the Nagios API. Have you been discussing it in the proper forum of [EMAIL PROTECTED] The plugins are a separate project from nagios. Though many of the developers might hang out here, they might not pay much attention. I'm sure they'd be happy to look at any provided patches if you had the time. > These are simple one-line changes does in setsockopt(2) and > getaddrinfo(2) > > http://netbsd.gw.com/cgi-bin/man-cgi?setsockopt++NetBSD-current > http://netbsd.gw.com/cgi-bin/man-cgi?getaddrinfo++NetBSD-current Being a hacker and not a coder, I don't have much to say about this other than the current implementation is consistent and easy to support. A non-trivial number of plugins are written in other languages that this wouldn't apply to (PERL, shell, etc). -- Marc - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_snmp_int.pl regex problems
Hi Dan, Thanks for the suggestion. That did not work, it still doesn't like the $. I have gone ahead and modified one of the check_snmp scripts to check it based on each interfaces oid. I can get the info I need now, just takes a bit more work. Jason _ Dan Eriksson wrote: > Hi Jason, > > According to this, > http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg02698.html > > It seems like you need to put single quotes instead of double quotes like, > as you want to match on "Intel(R) PRO/1000 MT Network Connection" and only > this. > > Then I guess your check_command should look something like: > > /check_command check_snmp_int!'PRO/1000 MT Network Connection$' > > Hope this helps, > > Best regards, > Dan > > -Ursprungligt meddelande- > Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Jason Woodward > Skickat: den 26 juni 2007 16:08 > Till: nagios-users@lists.sourceforge.net > Ämne: [Nagios-users] check_snmp_int.pl regex problems > > I have 2 interfaces: > > Intel(R) PRO/1000 MT Network Connection > Intel(R) PRO/1000 MT Network Connection #2 > > > I need to filter out " Intel(R) PRO/1000 MT Network Connection #2" . The > following are some of the commands I have tried. > > /check_command check_snmp_int!"" > MS TCP Loopback interface:UP, Intel(R) PRO/1000 MT Network Connection > #2:DOWN, Intel(R) PRO/1000 MT Network Connection:UP: 1 int NOK : CRITICAL/ > > this cuts out anything that matches MT, so I know that if I cut out any > interface with #, I will get what I want > /check_command check_snmp_int!"^[MT]" > MS TCP Loopback interface:UP:1 UP: OK/ > > But # doesn't work... > /check_command check_snmp_int!"^[#]" > ERROR : Unknown interface ^[#]/ > > maybe if I cut out any interface with 2 in it? > /check_command check_snmp_int!"^[2]" > ERROR : Unknown interface ^[2]/ > > this doesn't cut out anything that matches Intel, I assume something to > do with the / > /check_command check_snmp_int!"^[Intel]" > Intel(R) PRO/1000 MT Network Connection #2:DOWN, Intel(R) PRO/1000 MT > Network Connection:UP: 1 int NOK : CRITICAL/ > > I can isolate "Intel(R) PRO/1000 MT Network Connection #2" > /check_command check_snmp_int!"#2" > Intel(R) PRO/1000 MT Network Connection #2:DOWN: 1 int NOK : CRITICAL/ > > /check_command check_snmp_int!"Intel(R) PRO/1000 MT Network Connection" > ERROR : Unknown interface Intel(R) PRO/1000 MT Network Connection/ > > /check_command check_snmp_int!"1000 MT Network Connection" > Intel(R) PRO/1000 MT Network Connection #2:DOWN, Intel(R) PRO/1000 MT > Network Connection:UP: 1 int NOK : CRITICAL / > > > I can use "^Intel" to get Intel at the beginning > /check_command check_snmp_int!"^Intel" > Intel(R) PRO/1000 MT Network Connection #2:DOWN, Intel(R) PRO/1000 MT > Network Connection:UP: 1 int NOK : CRITICAL/ > > Since ^ works, I figured $ would work as well. $ does not seem to work > to match at the end, and it returns with 2 $? > /check_command check_snmp_int!"Connection$" > ERROR : Unknown interface Connection$$/ > > \Z does not work > /check_command check_snmp_int!"Connection\Z" > ERROR : Unknown interface Connection\Z/ > > > I am at a loss for what to do. There seems to be an issue with #, and $. > Anyone have a solution to this? I have 15 servers with this issue. > Thanks in advance, > > Jason Woodward > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] How to set the sourceaddress for all checks?
[re-send due to sf.net foo] On Thu, 2007-06-14 at 16:30 +0200, Ingo Lantschner wrote: > Hi, > if I am running Nagios on a host with more than one IP address on I've discussed, many times in the past, the need to be able to explicitly define the sources address that check plugins transmit from (TCP, ICMP, UDP at the very least) as part of the Nagios API. This is part of system-service abstraction. Big shops do it. It should probably be transmitted not as a "flag" or "argument" to the API but as an exported environmental variable to the sub-process. The most common situation where this is a perquisite is a mission critical Nagios deployment in an enterprise environment where Nagios runs in an Active-Standby server configuration. The present Active server possesses the High-Availability Layer 3 IP address of the cluster. All firewalls, ACLs, policies in the network expect to see Monitoring traffic sourced from the shared Layer 3 address. These are simple one-line changes does in setsockopt(2) and getaddrinfo(2) http://netbsd.gw.com/cgi-bin/man-cgi?setsockopt++NetBSD-current http://netbsd.gw.com/cgi-bin/man-cgi?getaddrinfo++NetBSD-current ~BAS > the same physical network (trough aliases like eth0:1): Can I set the > IP-source-address used for running the network-related-checks in one > point? If yes, where please :-) > > Thanks in advance, Ingo -- Brian A. Seklecki <[EMAIL PROTECTED]> Collaborative Fusion, Inc. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] FW: Problems with distributed setup, master overload?
Marc Powell wrote: > FWIW, I have a fairly large passive-only install with just over 4000 > passive checks every 5 minutes. I haven't experienced this problem. It's > a pretty simple, standard install but one difference is I don't perform > any host checks. Perhaps you have host checks that are not optimized or > completing in a timely manner and are holding up processing of other > tasks. Nagios will stop all other processing during host checks until > they complete. > > -- > Marc Marc, Thanks for that little bit of info... I didn't realize Nagios behaved this way. I played around with timing out host checks quickly, and even turning them off globally to see if this made any difference, but I still end up in situations where nagios just stops reading the command fifo. I think I may have narrowed it down to the even broker and ndo2db. I'm running the ndo module and logging service info to a mysql database for integration with other internal applications. Nagios seems to be getting hung up talking to ndomod when the mysql database gets somewhat large (>3 Gigs) . If I disable the ndo2db module or just truncate the tables everything seems fine. I've been fine tuning the event broker and the ndo2db config to try to keep the database as small as I can, but I think the root cause of my problem is nagios getting busy dumping event broker data and not getting around to reading that fifo. Thanks, -Tyler - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_snmp_int.pl regex problems
Hi Jason, According to this, http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg02698.html It seems like you need to put single quotes instead of double quotes like, as you want to match on "Intel(R) PRO/1000 MT Network Connection" and only this. Then I guess your check_command should look something like: /check_command check_snmp_int!'PRO/1000 MT Network Connection$' Hope this helps, Best regards, Dan -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Jason Woodward Skickat: den 26 juni 2007 16:08 Till: nagios-users@lists.sourceforge.net Ämne: [Nagios-users] check_snmp_int.pl regex problems I have 2 interfaces: Intel(R) PRO/1000 MT Network Connection Intel(R) PRO/1000 MT Network Connection #2 I need to filter out " Intel(R) PRO/1000 MT Network Connection #2" . The following are some of the commands I have tried. /check_command check_snmp_int!"" MS TCP Loopback interface:UP, Intel(R) PRO/1000 MT Network Connection #2:DOWN, Intel(R) PRO/1000 MT Network Connection:UP: 1 int NOK : CRITICAL/ this cuts out anything that matches MT, so I know that if I cut out any interface with #, I will get what I want /check_command check_snmp_int!"^[MT]" MS TCP Loopback interface:UP:1 UP: OK/ But # doesn't work... /check_command check_snmp_int!"^[#]" ERROR : Unknown interface ^[#]/ maybe if I cut out any interface with 2 in it? /check_command check_snmp_int!"^[2]" ERROR : Unknown interface ^[2]/ this doesn't cut out anything that matches Intel, I assume something to do with the / /check_command check_snmp_int!"^[Intel]" Intel(R) PRO/1000 MT Network Connection #2:DOWN, Intel(R) PRO/1000 MT Network Connection:UP: 1 int NOK : CRITICAL/ I can isolate "Intel(R) PRO/1000 MT Network Connection #2" /check_command check_snmp_int!"#2" Intel(R) PRO/1000 MT Network Connection #2:DOWN: 1 int NOK : CRITICAL/ /check_command check_snmp_int!"Intel(R) PRO/1000 MT Network Connection" ERROR : Unknown interface Intel(R) PRO/1000 MT Network Connection/ /check_command check_snmp_int!"1000 MT Network Connection" Intel(R) PRO/1000 MT Network Connection #2:DOWN, Intel(R) PRO/1000 MT Network Connection:UP: 1 int NOK : CRITICAL / I can use "^Intel" to get Intel at the beginning /check_command check_snmp_int!"^Intel" Intel(R) PRO/1000 MT Network Connection #2:DOWN, Intel(R) PRO/1000 MT Network Connection:UP: 1 int NOK : CRITICAL/ Since ^ works, I figured $ would work as well. $ does not seem to work to match at the end, and it returns with 2 $? /check_command check_snmp_int!"Connection$" ERROR : Unknown interface Connection$$/ \Z does not work /check_command check_snmp_int!"Connection\Z" ERROR : Unknown interface Connection\Z/ I am at a loss for what to do. There seems to be an issue with #, and $. Anyone have a solution to this? I have 15 servers with this issue. Thanks in advance, Jason Woodward - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Windows monitoring
Sounds good... What is the default command definition for check_nt? On 6/26/07, Frost, Mark {PBG} <[EMAIL PROTECTED]> wrote: That's what I've done. My understanding in Nagios is that a config file is a config file. I've never tried it, but I believe you could stuff your entire config (hosts, services, checkcommands, notification commands) into a single file. You'd be nuts given how incredibly complex Nagios configs can get, but you could. By the same token, you could break them out into as many individual files as you like as well as long as your nagios.cfg lists all the files it's supposed to read. I did as you indicated -- keep my hosts (windows or otherwise) in my hosts.cfg file. I tend to sort my config files by application rather than OS type so I put the service entries in files/directories with still other names. Mark -- *From:* Jerad Riggin [mailto:[EMAIL PROTECTED] *Sent:* Tuesday, June 26, 2007 9:53 AM *To:* Frost, Mark {PBG} *Cc:* nagios-users@lists.sourceforge.net *Subject:* Re: [Nagios-users] Windows monitoring Thanks for the info. So for example, it wants me to define new hosts in the windows.cfg. Is there a point to that? Can I just put service definitions in the windows.cfg and utilize the hosts I already have defined in hosts.cfg ? On 6/26/07, Frost, Mark {PBG} <[EMAIL PROTECTED]> wrote: > > Jerad, > > I took this to mean that it's a sort of generic/example config file. > You can always break out your configuration into additional > files/directories as makes sense for your installation as long as you add > new lines in the nagios.cfg file to tell it to read each new file and/or > directory you create. > > I found that a few things in that 3.0 doc for monitoring with NSClient++ > that weren't correct so you will find yourself making some modifications to > get things to work if you've completely copied entries from that doc page. > > Mark > > -- > *From:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] *On Behalf Of *Jerad Riggin > *Sent:* Tuesday, June 26, 2007 9:16 AM > *To:* nagios-users@lists.sourceforge.net > *Subject:* [Nagios-users] Windows monitoring > > I'm going through this article: http://nagios.sourceforge.net/docs/3_0/monitoring-windows.html > > > It is referring to a windows.cfg within nagios.cfg. I don't see any > such commented out line in my nagios.cfg, and I can't even find a > windows.cfg at all. Is the difference that I am running 2.9 and this is > referring to 3.0? > > - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] check_snmp_int.pl regex problems
I have 2 interfaces: Intel(R) PRO/1000 MT Network Connection Intel(R) PRO/1000 MT Network Connection #2 I need to filter out “ Intel(R) PRO/1000 MT Network Connection #2” . The following are some of the commands I have tried. /check_command check_snmp_int!"" MS TCP Loopback interface:UP, Intel(R) PRO/1000 MT Network Connection #2:DOWN, Intel(R) PRO/1000 MT Network Connection:UP: 1 int NOK : CRITICAL/ this cuts out anything that matches MT, so I know that if I cut out any interface with #, I will get what I want /check_command check_snmp_int!"^[MT]" MS TCP Loopback interface:UP:1 UP: OK/ But # doesn't work... /check_command check_snmp_int!"^[#]" ERROR : Unknown interface ^[#]/ maybe if I cut out any interface with 2 in it? /check_command check_snmp_int!"^[2]" ERROR : Unknown interface ^[2]/ this doesn't cut out anything that matches Intel, I assume something to do with the / /check_command check_snmp_int!"^[Intel]" Intel(R) PRO/1000 MT Network Connection #2:DOWN, Intel(R) PRO/1000 MT Network Connection:UP: 1 int NOK : CRITICAL/ I can isolate “Intel(R) PRO/1000 MT Network Connection #2” /check_command check_snmp_int!"#2" Intel(R) PRO/1000 MT Network Connection #2:DOWN: 1 int NOK : CRITICAL/ /check_command check_snmp_int!"Intel(R) PRO/1000 MT Network Connection" ERROR : Unknown interface Intel(R) PRO/1000 MT Network Connection/ /check_command check_snmp_int!"1000 MT Network Connection" Intel(R) PRO/1000 MT Network Connection #2:DOWN, Intel(R) PRO/1000 MT Network Connection:UP: 1 int NOK : CRITICAL / I can use “^Intel” to get Intel at the beginning /check_command check_snmp_int!"^Intel" Intel(R) PRO/1000 MT Network Connection #2:DOWN, Intel(R) PRO/1000 MT Network Connection:UP: 1 int NOK : CRITICAL/ Since ^ works, I figured $ would work as well. $ does not seem to work to match at the end, and it returns with 2 $? /check_command check_snmp_int!"Connection$" ERROR : Unknown interface Connection$$/ \Z does not work /check_command check_snmp_int!"Connection\Z" ERROR : Unknown interface Connection\Z/ I am at a loss for what to do. There seems to be an issue with #, and $. Anyone have a solution to this? I have 15 servers with this issue. Thanks in advance, Jason Woodward - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Windows monitoring
That's what I've done. My understanding in Nagios is that a config file is a config file. I've never tried it, but I believe you could stuff your entire config (hosts, services, checkcommands, notification commands) into a single file. You'd be nuts given how incredibly complex Nagios configs can get, but you could. By the same token, you could break them out into as many individual files as you like as well as long as your nagios.cfg lists all the files it's supposed to read. I did as you indicated -- keep my hosts (windows or otherwise) in my hosts.cfg file. I tend to sort my config files by application rather than OS type so I put the service entries in files/directories with still other names. Mark From: Jerad Riggin [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 26, 2007 9:53 AM To: Frost, Mark {PBG} Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Windows monitoring Thanks for the info. So for example, it wants me to define new hosts in the windows.cfg. Is there a point to that? Can I just put service definitions in the windows.cfg and utilize the hosts I already have defined in hosts.cfg ? On 6/26/07, Frost, Mark {PBG} <[EMAIL PROTECTED]> wrote: Jerad, I took this to mean that it's a sort of generic/example config file. You can always break out your configuration into additional files/directories as makes sense for your installation as long as you add new lines in the nagios.cfg file to tell it to read each new file and/or directory you create. I found that a few things in that 3.0 doc for monitoring with NSClient++ that weren't correct so you will find yourself making some modifications to get things to work if you've completely copied entries from that doc page. Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jerad Riggin Sent: Tuesday, June 26, 2007 9:16 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Windows monitoring I'm going through this article: http://nagios.sourceforge.net/docs/3_0/monitoring-windows.html It is referring to a windows.cfg within nagios.cfg. I don't see any such commented out line in my nagios.cfg, and I can't even find a windows.cfg at all. Is the difference that I am running 2.9 and this is referring to 3.0? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Windows monitoring
Thanks for the info. So for example, it wants me to define new hosts in the windows.cfg. Is there a point to that? Can I just put service definitions in the windows.cfg and utilize the hosts I already have defined in hosts.cfg ? On 6/26/07, Frost, Mark {PBG} <[EMAIL PROTECTED]> wrote: Jerad, I took this to mean that it's a sort of generic/example config file. You can always break out your configuration into additional files/directories as makes sense for your installation as long as you add new lines in the nagios.cfg file to tell it to read each new file and/or directory you create. I found that a few things in that 3.0 doc for monitoring with NSClient++ that weren't correct so you will find yourself making some modifications to get things to work if you've completely copied entries from that doc page. Mark -- *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *On Behalf Of *Jerad Riggin *Sent:* Tuesday, June 26, 2007 9:16 AM *To:* nagios-users@lists.sourceforge.net *Subject:* [Nagios-users] Windows monitoring I'm going through this article: http://nagios.sourceforge.net/docs/3_0/monitoring-windows.html It is referring to a windows.cfg within nagios.cfg. I don't see any such commented out line in my nagios.cfg, and I can't even find a windows.cfgat all. Is the difference that I am running 2.9 and this is referring to 3.0? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Windows monitoring
Jerad, I took this to mean that it's a sort of generic/example config file. You can always break out your configuration into additional files/directories as makes sense for your installation as long as you add new lines in the nagios.cfg file to tell it to read each new file and/or directory you create. I found that a few things in that 3.0 doc for monitoring with NSClient++ that weren't correct so you will find yourself making some modifications to get things to work if you've completely copied entries from that doc page. Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jerad Riggin Sent: Tuesday, June 26, 2007 9:16 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Windows monitoring I'm going through this article: http://nagios.sourceforge.net/docs/3_0/monitoring-windows.html It is referring to a windows.cfg within nagios.cfg. I don't see any such commented out line in my nagios.cfg, and I can't even find a windows.cfg at all. Is the difference that I am running 2.9 and this is referring to 3.0? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Windows monitoring
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Jerad Riggin > Sent: Tuesday, June 26, 2007 8:16 AM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Windows monitoring > > I'm going through this article: > http://nagios.sourceforge.net/docs/3_0/monitoring-windows.html > > It is referring to a windows.cfg within nagios.cfg. I don't see any such > commented out line in my nagios.cfg, and I can't even find a windows.cfg > at all. Is the difference that I am running 2.9 and this is referring to > 3.0? Yes. -- Marc - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Perf data / Graphs
Thanks Arno and everyone who tried to help, I finally got it after a lot of hard work :=), the expression i needed in the ncfg file for graphing memory was graph_perf_regex Memory Usage=([0-9]*\.[0-9]*) Thanks Much, - Palle --- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=2217 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Windows monitoring
I'm going through this article: http://nagios.sourceforge.net/docs/3_0/monitoring-windows.html It is referring to a windows.cfg within nagios.cfg. I don't see any such commented out line in my nagios.cfg, and I can't even find a windows.cfg at all. Is the difference that I am running 2.9 and this is referring to 3.0? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] notification delay
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Marc Boisis-Delavaud > Sent: Tuesday, June 26, 2007 2:42 AM > To: nagios Users mailinglist > Subject: [Nagios-users] notification delay > > > Hello, > > I want Nagios notifiy me only if the problem is during more than 10 min. I > want not receive mail if the problem is during less. How can I do that ? For services, adjust max_check_attempts and retry_check_interval. For host checks you don't have quite the same flexibility. Nagios will want to notify you of host checks pretty quickly. You'll need to use escalations to get a notification delay for those. -- Marc - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] RE : Sybase check on windows servers
Hi, >I installed nsclient++. The port is open because it is performing other >checks. > >And I had tried with -p. but still the same error. Did you try the other check though NSClient in command line to be sure there is nothing we miss ? Can you send me the command you run, and some definition of other commands which are working ? Florent - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] notification delay
Hello, I want Nagios notifiy me only if the problem is during more than 10 min. I want not receive mail if the problem is during less. How can I do that ? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] RE : Sybase check on windows servers
I installed nsclient++. The port is open because it is performing other checks. And I had tried with -p. but still the same error. From: Florent HOUBART [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 26, 2007 12:45 PM To: Lalita Drolia Cc: nagios-users@lists.sourceforge.net Subject: RE : [Nagios-users] Sybase check on windows servers Hi, >Your last mail helped me to clear my concepts. Thank you :-) Happy it can help you ! > >I am trying check_nt from the command line now, with the instructions >you gave. > >But I am getting the error "Connection refused. Could not fetch >information from server." > >Unable to fix that. It means that the port on your Windows server is closed. Did you installed NSClient, NC_NET or something like that on it ? Or maybe the port you specified on your Windows server is not the default 1248. In this case, you should use the -p flag in check_nt. Regards, Florent Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] RE : Sybase check on windows servers
Hi, >Your last mail helped me to clear my concepts. Thank you :-) Happy it can help you ! > >I am trying check_nt from the command line now, with the instructions >you gave. > >But I am getting the error "Connection refused. Could not fetch >information from server." > >Unable to fix that. It means that the port on your Windows server is closed. Did you installed NSClient, NC_NET or something like that on it ? Or maybe the port you specified on your Windows server is not the default 1248. In this case, you should use the -p flag in check_nt. Regards, Florent - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null