Re: [Nagios-users] check_snmp_int.pl: over 100%?
On Thu June 5 2008 17:30:24 Ford, Andy wrote: I'm trying to use check_snmp_int.pl (not standard, see http://nagios.manubulon.com/snmp_int.html) but when I try to get my results in percent form, I get over 100% results on at least on device: $./check_snmp_int.pl -HDEVICE -CXXX --name 'eth-s1p1 ' --perfcheck --perfspeed --warning=40,60 --critical=60,80 --prct eth-s1p1 Ethernet Layer Intel 10/100 Ethernet:UP (CRIT 180.3%/CRIT 468.1%):(1 UP): CRITICAL Am I just using the options wrong? try this: check_cisco_int -H $HOSTADDRESS$ -C $USER4$ -B -u -r -f -n $ARG1$ -kY -w 80,80 -c 90,90 -d 600 Thanks Dani for the reply. I'm confused: is that a command definition or a custom plugin? If I use your options but replace check_ciso_int with check_snmp_int.pl I still get results over 100%. I think my device has got erroneous info in it's reported ifSpeeds: RFC1213-MIB::ifSpeed.1 = Gauge32: 10 RFC1213-MIB::ifSpeed.2 = Gauge32: 10 RFC1213-MIB::ifSpeed.3 = Gauge32: 10 RFC1213-MIB::ifSpeed.4 = Gauge32: 10 RFC1213-MIB::ifSpeed.5 = Gauge32: 10 RFC1213-MIB::ifSpeed.6 = Gauge32: 10 RFC1213-MIB::ifSpeed.7 = Gauge32: 1 RFC1213-MIB::ifSpeed.8 = Gauge32: 1 Those can't be right for these kind of interfaces, can they? RFC1213-MIB::ifDescr.1 = STRING: eth-s1p1 Ethernet Layer Intel 10/100 Ethernet RFC1213-MIB::ifDescr.2 = STRING: eth-s1p2 Ethernet Layer Intel 10/100 Ethernet RFC1213-MIB::ifDescr.3 = STRING: eth-s1p3 Ethernet Layer Intel 10/100 Ethernet RFC1213-MIB::ifDescr.4 = STRING: eth-s1p4 Ethernet Layer Intel 10/100 Ethernet RFC1213-MIB::ifDescr.5 = STRING: eth-s4p1 Ethernet Layer Intel Gigabit Ethernet RFC1213-MIB::ifDescr.6 = STRING: eth-s4p2 Ethernet Layer Intel Gigabit Ethernet RFC1213-MIB::ifDescr.7 = STRING: eth-s4p3 Ethernet Layer Intel Gigabit Ethernet RFC1213-MIB::ifDescr.8 = STRING: eth-s4p4 Ethernet Layer Intel Gigabit Ethernet I wonder if I need to just multiply by 1,000 or something. Andrew Ford Wachovia Corporate Information Security 314-955-6647 desk 314-600-7025 cell [EMAIL PROTECTED] Wachovia Securities, LLC's outgoing and incoming e-mails are electronically archived and subject to review and/or disclosure to someone other than the recipient. A.G. Edwards, a division of Wachovia Securities, LLC - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ 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: over 100%?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ford, Andy wrote: | I'm trying to use check_snmp_int.pl (not standard, see | http://nagios.manubulon.com/snmp_int.html) but when I try to get my | results in percent form, I get over 100% results on at least on device: | | | $./check_snmp_int.pl -HDEVICE -CXXX --name 'eth-s1p1 ' --perfcheck | --perfspeed --warning=40,60 --critical=60,80 --prct | eth-s1p1 Ethernet Layer Intel 10/100 Ethernet:UP (CRIT 180.3%/CRIT | 468.1%):(1 UP): CRITICAL You are instructing it to report how much the speed goes over the configured maximum. And you set the maximum to 60 Kb/s in and 80 kb/s out. It seems you have in fact 108 kb/s in and 375 kb/s out as the actual traffic flow. So the alert is valid. If you add the -u parameter your would trigger warning on the percentage ~ of the interface. So you need to reach 40% of your maximum speed before you reach the warning level. It is also important to see what the maximum port speed is according to your config. But I must admit the help info on this plugin is not exactly clear. A number of options seem to be described in rather puzzling terms which are open to speculation of what is meant exactly. This may be due to translation errors. Hugo. - -- [EMAIL PROTECTED] http://hugo.vanderkooij.org/ PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting frowned upon? Bored? Click on http://spamornot.org/ and rate those images. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFITQhXBvzDRVjxmYERAhSmAJ9fqYwXIv3erkn7MbKDSr3+H/7cuACeO3F7 iNKo9IdvX2WmELknOV68LnM= =gHku -END PGP SIGNATURE- - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ 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: over 100%?
On Sun June 8 2008 20:05:42 Ford, Andy wrote: I think my device has got erroneous info in it's reported ifSpeeds: RFC1213-MIB::ifSpeed.1 = Gauge32: 10 RFC1213-MIB::ifSpeed.2 = Gauge32: 10 RFC1213-MIB::ifSpeed.3 = Gauge32: 10 RFC1213-MIB::ifSpeed.4 = Gauge32: 10 RFC1213-MIB::ifSpeed.5 = Gauge32: 10 RFC1213-MIB::ifSpeed.6 = Gauge32: 10 RFC1213-MIB::ifSpeed.7 = Gauge32: 1 RFC1213-MIB::ifSpeed.8 = Gauge32: 1 Those can't be right for these kind of interfaces, can they? RFC1213-MIB::ifDescr.1 = STRING: eth-s1p1 Ethernet Layer Intel 10/100 Ethernet RFC1213-MIB::ifDescr.2 = STRING: eth-s1p2 Ethernet Layer Intel 10/100 Ethernet RFC1213-MIB::ifDescr.3 = STRING: eth-s1p3 Ethernet Layer Intel 10/100 Ethernet RFC1213-MIB::ifDescr.4 = STRING: eth-s1p4 Ethernet Layer Intel 10/100 Ethernet RFC1213-MIB::ifDescr.5 = STRING: eth-s4p1 Ethernet Layer Intel Gigabit Ethernet RFC1213-MIB::ifDescr.6 = STRING: eth-s4p2 Ethernet Layer Intel Gigabit Ethernet RFC1213-MIB::ifDescr.7 = STRING: eth-s4p3 Ethernet Layer Intel Gigabit Ethernet RFC1213-MIB::ifDescr.8 = STRING: eth-s4p4 Ethernet Layer Intel Gigabit Ethernet I wonder if I need to just multiply by 1,000 or something. http://www.mg-soft.si/mgMibExplorer-samples/RFC1213-MIB.html#ifspeed -- 1.3.6.1.2.1.2.2.1.5 ifSpeed OBJECT-TYPE SYNTAX Gauge ACCESS read-only STATUS mandatory DESCRIPTION An estimate of the interface's current bandwidth in bits per second. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. dani - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ 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: over 100%?
I'm trying to use check_snmp_int.pl (not standard, see http://nagios.manubulon.com/snmp_int.html) but when I try to get my results in percent form, I get over 100% results on at least on device: $./check_snmp_int.pl -HDEVICE -CXXX --name 'eth-s1p1 ' --perfcheck --perfspeed --warning=40,60 --critical=60,80 --prct eth-s1p1 Ethernet Layer Intel 10/100 Ethernet:UP (CRIT 180.3%/CRIT 468.1%):(1 UP): CRITICAL Am I just using the options wrong? Andrew Ford Wachovia Corporate Information Security 314-955-6647 desk 314-600-7025 cell [EMAIL PROTECTED] Wachovia Securities, LLC's outgoing and incoming e-mails are electronically archived and subject to review and/or disclosure to someone other than the recipient. A.G. Edwards, a division of Wachovia Securities, LLC - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ 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: over 100%?
On Thu June 5 2008 17:30:24 Ford, Andy wrote: I'm trying to use check_snmp_int.pl (not standard, see http://nagios.manubulon.com/snmp_int.html) but when I try to get my results in percent form, I get over 100% results on at least on device: $./check_snmp_int.pl -HDEVICE -CXXX --name 'eth-s1p1 ' --perfcheck --perfspeed --warning=40,60 --critical=60,80 --prct eth-s1p1 Ethernet Layer Intel 10/100 Ethernet:UP (CRIT 180.3%/CRIT 468.1%):(1 UP): CRITICAL Am I just using the options wrong? try this: check_cisco_int -H $HOSTADDRESS$ -C $USER4$ -B -u -r -f -n $ARG1$ -kY -w 80,80 -c 90,90 -d 600 regards, dani - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ 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: over 100%?
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel López Sent: Thursday, June 05, 2008 10:54 AM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] check_snmp_int.pl: over 100%? On Thu June 5 2008 17:30:24 Ford, Andy wrote: I'm trying to use check_snmp_int.pl (not standard, see http://nagios.manubulon.com/snmp_int.html) but when I try to get my results in percent form, I get over 100% results on at least on device: $./check_snmp_int.pl -HDEVICE -CXXX --name 'eth-s1p1 ' --perfcheck --perfspeed --warning=40,60 --critical=60,80 --prct eth-s1p1 Ethernet Layer Intel 10/100 Ethernet:UP (CRIT 180.3%/CRIT 468.1%):(1 UP): CRITICAL Am I just using the options wrong? try this: check_cisco_int -H $HOSTADDRESS$ -C $USER4$ -B -u -r -f -n $ARG1$ -kY -w 80,80 -c 90,90 -d 600 Thanks Dani for the reply. I'm confused: is that a command definition or a custom plugin? If I use your options but replace check_ciso_int with check_snmp_int.pl I still get results over 100%. Andrew Ford Wachovia Corporate Information Security 314-955-6647 desk 314-600-7025 cell [EMAIL PROTECTED] Wachovia Securities, LLC's outgoing and incoming e-mails are electronically archived and subject to review and/or disclosure to someone other than the recipient. A.G. Edwards, a division of Wachovia Securities, LLC - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ 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] 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] 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 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
[Nagios-users] check_snmp_int.pl
Title: check_snmp_int.pl Does anyone have a SNMP Version 2, version of check_snmp_int.pl? I have two devices on my network that require SNMP Version 2 only, it would be MUCH easier to update that file and the service check for the two devices. Thanks in advance, Mike - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ 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 problem
Le vendredi 31 mars 2006 à 22:32 -0700, Neil Lehouillier a écrit : Hi all, I hoping someone out there can help me out. I'm having a problem with the check_snmp_int.pl script. When I issue the following command from the command line check_snmp_int.pl -H 192.168.0.12 -C public -n -w 600,600 -c 800,800 to display the status of all the network adapters I get the following: MS TCP Loopback interface:UP, 3Com SOHO PCI:UP:2 UP: OK But when I issue the command from nagios I only receive the following on the nagios web screen: (I omitted the date time and other non essential info) Hi, This plugin can use regex to match interfaces you want. You can use this following regex: ^[^MS TCP Loopback] You've all interfaces without this naming interface. Regards, -- Raphaël 'SurcouF' Bordet http://debianfr.net/ | JID: surcouf at debianfr dot net --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ 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 problem
Thanks... that worked great. Anyone out there wouldn't happen to know how to make the check_snmp_int.pl script display the statistics within nagios? Currently when I query the interface on a box I get: a green line with the following: NIC Usage OK 04-01-2006 09:29:54 3d 22h 47m 8s 1/3 3Com 3C90x Ethernet Adapter I would like to see the statistics within the 3com 3C90x line. Also does anyone know what happens when there are multiple nics within the same box? Does it display all the interfaces or just the first one? Thanks again Neil From: Raphaël 'SurcouF' Bordet [EMAIL PROTECTED] To: nagios-users@lists.sourceforge.net Sent: Saturday, April 01, 2006 8:02 AM Subject: Re: [Nagios-users] check_snmp_int.pl problem Le vendredi 31 mars 2006 à 22:32 -0700, Neil Lehouillier a écrit : Hi all, I hoping someone out there can help me out. I'm having a problem with the check_snmp_int.pl script. When I issue the following command from the command line check_snmp_int.pl -H 192.168.0.12 -C public -n -w 600,600 -c 800,800 to display the status of all the network adapters I get the following: MS TCP Loopback interface:UP, 3Com SOHO PCI:UP:2 UP: OK But when I issue the command from nagios I only receive the following on the nagios web screen: (I omitted the date time and other non essential info) Hi, This plugin can use regex to match interfaces you want. You can use this following regex: ^[^MS TCP Loopback] You've all interfaces without this naming interface. Regards, -- Raphaël 'SurcouF' Bordet http://debianfr.net/ | JID: surcouf at debianfr dot net --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642 ___ 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 xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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
Im using check_snmp_int.pl to check on interfaces on switches/routers, but cant seem to have it look at a single interface. I think this is a / issue, but am not sure. When use the command: ./check_snmp_int -H 10.xx.xx.xx -C community -n GigabitEthernet0/1 I receive the following: GigabitEthernet0/1:UP, GigabitEthernet0/12:DOWN, GigabitEthernet0/10:UP, GigabitEthernet0/11:DOWN: 2 int NOK : CRITICA I only wish to see one interface, rather than all of them as some are not in use and *should* be down. Thoughts? Maybe its time for more coffee? Thanks! Mike
RE: [Nagios-users] Check_snmp_int.pl
Dennis, Thanks for the tip. That worked! I suppose its time to dive into Perl ;-) Thanks! Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Hopp Sent: Thursday, February 16, 2006 9:33 AM To: Mike Koponick; Nagios Users Subject: RE: [Nagios-users] Check_snmp_int.pl Try: ./check_snmp_int -H 10.xx.xx.xx -C community -n GigabitEthernet0/1$ --Dennis From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Koponick Sent: Thursday, February 16, 2006 11:18 AM To: Nagios Users Subject: [Nagios-users] Check_snmp_int.pl Im using check_snmp_int.pl to check on interfaces on switches/routers, but cant seem to have it look at a single interface. I think this is a / issue, but am not sure. When use the command: ./check_snmp_int -H 10.xx.xx.xx -C community -n GigabitEthernet0/1 I receive the following: GigabitEthernet0/1:UP, GigabitEthernet0/12:DOWN, GigabitEthernet0/10:UP, GigabitEthernet0/11:DOWN: 2 int NOK : CRITICA I only wish to see one interface, rather than all of them as some are not in use and *should* be down. Thoughts? Maybe its time for more coffee? Thanks! Mike
RE: [Nagios-users] Check_snmp_int.pl
That's not really perl, that's just regular expressions. If you need help with regular expressions check out "The Regex Coach". It's a free program that will help you figure out the regular _expression_ you need to match a given phrase. --Dennis From: Mike Koponick [mailto:[EMAIL PROTECTED] Sent: Thursday, February 16, 2006 11:38 AMTo: Dennis Hopp; Nagios UsersSubject: RE: [Nagios-users] Check_snmp_int.pl Dennis, Thanks for the tip. That worked! I suppose its time to dive into Perl ;-) Thanks! Mike -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis HoppSent: Thursday, February 16, 2006 9:33 AMTo: Mike Koponick; Nagios UsersSubject: RE: [Nagios-users] Check_snmp_int.pl Try: ./check_snmp_int -H 10.xx.xx.xx -C community -n GigabitEthernet0/1$ --Dennis From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike KoponickSent: Thursday, February 16, 2006 11:18 AMTo: Nagios UsersSubject: [Nagios-users] Check_snmp_int.pl Im using check_snmp_int.pl to check on interfaces on switches/routers, but cant seem to have it look at a single interface. I think this is a / issue, but am not sure. When use the command: ./check_snmp_int -H 10.xx.xx.xx -C community -n GigabitEthernet0/1 I receive the following: GigabitEthernet0/1:UP, GigabitEthernet0/12:DOWN, GigabitEthernet0/10:UP, GigabitEthernet0/11:DOWN: 2 int NOK : CRITICA I only wish to see one interface, rather than all of them as some are not in use and *should* be down. Thoughts? Maybe its time for more coffee? Thanks! Mike