[Nagios-users] check_snmp syntax question

2013-02-05 Thread Kaplan, Andrew H.
Hello --

I am testing out check_snmp on our printers, and I have been successful using 
the following syntax:

./check_snmp -H ip adddress -C public -o sysDescr.0

which has provided the following output:

SNMP OK - HP ETHERNET MULTI-ENVIRONMENT,ROM R.22.01,JETDIRECT,JD95,EEPROM 
R.25.57,CIDATE 05/02/2006 |

What I am trying to do now is get the status of the printer with the goal of 
generating output that would
indicate if toner is low, or if other components are in need of service. What 
would be the correct syntax
to use to accomplish this?

Thanks.





The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb___
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 syntax question

2013-02-05 Thread Steven Carr
Have you tried the actual HP JetDirect plugin instead of trying to
reinvent the wheel? check_hpjd?
http://nagiosplugins.org/man/check_hpjd

Steve


On 5 February 2013 16:22, Kaplan, Andrew H. ahkap...@partners.org wrote:
 Hello --

 I am testing out check_snmp on our printers, and I have been successful
 using the following syntax:

 ./check_snmp -H ip adddress -C public -o sysDescr.0

 which has provided the following output:

 SNMP OK - HP ETHERNET MULTI-ENVIRONMENT,ROM R.22.01,JETDIRECT,JD95,EEPROM
 R.25.57,CIDATE 05/02/2006 |

 What I am trying to do now is get the status of the printer with the goal of
 generating output that would
 indicate if toner is low, or if other components are in need of service.
 What would be the correct syntax
 to use to accomplish this?

 Thanks.




 The information in this e-mail is intended only for the person to whom it is
 addressed. If you believe this e-mail was sent to you in error and the
 e-mail
 contains patient information, please contact the Partners Compliance
 HelpLine at
 http://www.partners.org/complianceline . If the e-mail was sent to you in
 error
 but does not contain patient information, please contact the sender and
 properly
 dispose of the e-mail.


 --
 Free Next-Gen Firewall Hardware Offer
 Buy your Sophos next-gen firewall before the end March 2013
 and get the hardware for free! Learn more.
 http://p.sf.net/sfu/sophos-d2d-feb
 ___
 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

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
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 syntax question

2013-02-05 Thread Kaplan, Andrew H.
Hello --

I did try the check_hpjd plugin. While it did provide some information 
concerning 
an issue with a test printer, it did not go in-depth as to what was the actual 
error
condition. I want to see what check_snmp would provide, and compare that to the 
output
generated by the check_hpjd plugin.



-Original Message-
From: Steven Carr [mailto:sjc...@gmail.com] 
Sent: Tuesday, February 05, 2013 1:02 PM
To: Nagios Users List
Subject: Re: [Nagios-users] check_snmp syntax question

Have you tried the actual HP JetDirect plugin instead of trying to
reinvent the wheel? check_hpjd?
http://nagiosplugins.org/man/check_hpjd

Steve


On 5 February 2013 16:22, Kaplan, Andrew H. ahkap...@partners.org wrote:
 Hello --

 I am testing out check_snmp on our printers, and I have been successful
 using the following syntax:

 ./check_snmp -H ip adddress -C public -o sysDescr.0

 which has provided the following output:

 SNMP OK - HP ETHERNET MULTI-ENVIRONMENT,ROM R.22.01,JETDIRECT,JD95,EEPROM
 R.25.57,CIDATE 05/02/2006 |

 What I am trying to do now is get the status of the printer with the goal of
 generating output that would
 indicate if toner is low, or if other components are in need of service.
 What would be the correct syntax
 to use to accomplish this?

 Thanks.




 The information in this e-mail is intended only for the person to whom it is
 addressed. If you believe this e-mail was sent to you in error and the
 e-mail
 contains patient information, please contact the Partners Compliance
 HelpLine at
 http://www.partners.org/complianceline . If the e-mail was sent to you in
 error
 but does not contain patient information, please contact the sender and
 properly
 dispose of the e-mail.


 --
 Free Next-Gen Firewall Hardware Offer
 Buy your Sophos next-gen firewall before the end March 2013
 and get the hardware for free! Learn more.
 http://p.sf.net/sfu/sophos-d2d-feb
 ___
 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

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
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

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
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 command

2012-12-16 Thread Nibin V M
Hello,

I am trying to use check_snmp command and it is not working as expected.
The command I tried is outlined below.

 ./check_snmp -H myhost -C public -o UCD-SNMP-MIB::extOutput.4 -w 500 -c
1000
SNMP OK - 1106 | UCD-SNMP-MIB::extOutput.4=1106

As per the check_snmp man page, it should show CRITICAL status, where it is
in OK status now! Or am I missing something?

Please advice.

-- 
Regards,
Nibin.
-
--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d___
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

2012-08-27 Thread Brad Beckenhauer
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 
40:50
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 
40:50 -c 1:25
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 
50:80
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--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT 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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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

2012-08-27 Thread Andreas Ericsson
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 50: -w 55:

would be reasonable values. That will cause a critical alert when
the value is below 50 and a warning value when it's below 55.

-- 
Andreas Ericsson   andreas.erics...@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT 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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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 Issue

2012-08-22 Thread Anjana Gonagala
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@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@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
helpd...@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
image/jpeg--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT 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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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 Issue

2012-08-22 Thread Steven Carr
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 anja...@goodhope-lk.com 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@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@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 
 notifyhelpd...@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@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when
 reporting any issue.
 ::: Messages without supporting info will risk being sent to /dev/null

image/jpeg--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT 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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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 (External Command Error)

2012-03-20 Thread Davey, Jatin Kumar (Jatin Kumar)
Hi All

I have the latest stable version of Nagios Core and Nagios Plugins installed in 
a CentOS 6.2 machine. While using the check_snmp in my object files I am 
getting the following error in the UI:

External command error: snmp_build: unknown failuresnmpget: Error building 
ASN.1 representation (Can't build OID for variable)

Text in the host file where I have defined the service is:

define service{

host_name   Dslam-XXX
service_description :1-1-5-1
check_command   
check_xdsl_line!x.x.x.x!iso.3.6.1.2.1.2.2.1.8.134610945!xxx
max_check_attempts  5
check_interval  1
retry_interval  3
check_period24x7
notification_interval   30
notification_period 24x7
contact_groups  admins
}

Text in the commands file for the above used custom command is:

define command{
command_namecheck_xdsl_line
command_line$USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C $ARG2$ 
-c 1
}


Please let me know how to solve this issue.

Thanks
Jatin

--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure___
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 (External Command Error)

2012-03-20 Thread Davey, Jatin Kumar (Jatin Kumar)
Want to add one more information , the same command if I try using the plugin 
present in the libexec directory works fine.

Thanks
Jatin

From: Davey, Jatin Kumar (Jatin Kumar) 
[mailto:jatin_kumar.da...@alcatel-lucent.com]
Sent: Tuesday, March 20, 2012 6:24 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] check_snmp (External Command Error)

Hi All

I have the latest stable version of Nagios Core and Nagios Plugins installed in 
a CentOS 6.2 machine. While using the check_snmp in my object files I am 
getting the following error in the UI:

External command error: snmp_build: unknown failuresnmpget: Error building 
ASN.1 representation (Can't build OID for variable)

Text in the host file where I have defined the service is:

define service{

host_name   Dslam-XXX
service_description :1-1-5-1
check_command   
check_xdsl_line!x.x.x.x!iso.3.6.1.2.1.2.2.1.8.134610945!xxx
max_check_attempts  5
check_interval  1
retry_interval  3
check_period24x7
notification_interval   30
notification_period 24x7
contact_groups  admins
}

Text in the commands file for the above used custom command is:

define command{
command_namecheck_xdsl_line
command_line$USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C $ARG2$ 
-c 1
}


Please let me know how to solve this issue.

Thanks
Jatin

--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure___
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 (External Command Error)

2012-03-20 Thread Werner, Robert
I think your OID needs to be all numerical.  (translate iso into the numerical 
prefix).

--
Robert G. Werner
Oracle Apps Systems Administrator
rwer...@pomwonderful.com
559.521.5089

From: Davey, Jatin Kumar (Jatin Kumar) 
[mailto:jatin_kumar.da...@alcatel-lucent.com]
Sent: Tuesday, March 20, 2012 5:54 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] check_snmp (External Command Error)

Hi All

I have the latest stable version of Nagios Core and Nagios Plugins installed in 
a CentOS 6.2 machine. While using the check_snmp in my object files I am 
getting the following error in the UI:

External command error: snmp_build: unknown failuresnmpget: Error building 
ASN.1 representation (Can't build OID for variable)

Text in the host file where I have defined the service is:

define service{

host_name   Dslam-XXX
service_description :1-1-5-1
check_command   
check_xdsl_line!x.x.x.x!iso.3.6.1.2.1.2.2.1.8.134610945!xxx
max_check_attempts  5
check_interval  1
retry_interval  3
check_period24x7
notification_interval   30
notification_period 24x7
contact_groups  admins
}

Text in the commands file for the above used custom command is:

define command{
command_namecheck_xdsl_line
command_line$USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C $ARG2$ 
-c 1
}


Please let me know how to solve this issue.

Thanks
Jatin

--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure___
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 (External Command Error)

2012-03-20 Thread Davey, Jatin Kumar (Jatin Kumar)
Ok , Thanks.

For the benefit of all I did two changes and it worked.

Change 1:
Mentioned the full OID as mentioned by Werner.

Change 2:

Instead of using the $HOSTADDRESS$ , I used $ARG1$

Thanks
Jatin


From: Werner, Robert [mailto:rwer...@pomwonderful.com]
Sent: Tuesday, March 20, 2012 11:02 PM
To: Nagios Users List
Subject: Re: [Nagios-users] check_snmp (External Command Error)

I think your OID needs to be all numerical.  (translate iso into the numerical 
prefix).

--
Robert G. Werner
Oracle Apps Systems Administrator
rwer...@pomwonderful.com
559.521.5089

From: Davey, Jatin Kumar (Jatin Kumar) 
[mailto:jatin_kumar.da...@alcatel-lucent.com]
Sent: Tuesday, March 20, 2012 5:54 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] check_snmp (External Command Error)

Hi All

I have the latest stable version of Nagios Core and Nagios Plugins installed in 
a CentOS 6.2 machine. While using the check_snmp in my object files I am 
getting the following error in the UI:

External command error: snmp_build: unknown failuresnmpget: Error building 
ASN.1 representation (Can't build OID for variable)

Text in the host file where I have defined the service is:

define service{

host_name   Dslam-XXX
service_description :1-1-5-1
check_command   
check_xdsl_line!x.x.x.x!iso.3.6.1.2.1.2.2.1.8.134610945!xxx
max_check_attempts  5
check_interval  1
retry_interval  3
check_period24x7
notification_interval   30
notification_period 24x7
contact_groups  admins
}

Text in the commands file for the above used custom command is:

define command{
command_namecheck_xdsl_line
command_line$USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C $ARG2$ 
-c 1
}


Please let me know how to solve this issue.

Thanks
Jatin

--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure___
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 -s (and -r) not working

2012-03-16 Thread Fournier, Wim
Don't know if you've solved this already. For integer values, I use -c x:x
The regexp and string (-s) matches expect a string and return OK if
otherwise.

--

Wim Fournier   Senior Technical Appl. Administrator   |  comScore, Inc.
(NASDAQ:SCOR)
t +31 (0)20 5195476   |   f +31 (0)20 6953786   |   w.fourn...@nedstat.com
...

comScore
Measuring the Digital World
Nedstat is now part of comScore
www.comscore.com
www.nedstat.nl





On 2/20/12 11:29 PM, David Dyer-Bennet d...@dd-b.net wrote:

Using check_snmp v1.4.15 (nagios-plugins 1.4.15)

[ddb@prc-mn-lnx01 dev]$ /usr/lib64/nagios/plugins/check_snmp  -H
192.168.1.254 -C XX -o 1.3.6.1.2.1.2.2.1.8.10125 -l ifOperStatus  -s
loser -v
/usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] 192.168.1.254:161
1.3.6.1.2.1.2.2.1.8.10125
iso.3.6.1.2.1.2.2.1.8.10125 = INTEGER: 2
SNMP OK - ifOperStatus 2 | ifOperStatus=2

I'm trying to check an OID value that isn't range-related,
ifOperStatus.port.  As you see, I'm getting back the enum value that
means down.  This does NOT in any way match the -s string I supplied.
I'm still getting an OK return value.

(Obviously it's easy to wrap this with a script that finds the
ifOperStatus=int and returns what I need.  I'll do that if I have to.)

But...am I misunderstanding what the -s switch does?  Or is the -s switch
completely non-functional in this version?  (I've read about a change
rolled back to restore 1.4.14 behavior, but I didn't read the description
as saying the string matching was completely non-functional before that.)

I've also tried -r for regexps, same results; they seem to be completely
ignored.
-- 
David Dyer-Bennet, d...@dd-b.net; http://dd-b.net/
Snapshots: http://dd-b.net/dd-b/SnapshotAlbum/data/
Photos: http://dd-b.net/photography/gallery/
Dragaera: http://dragaera.info


--

Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
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


smime.p7s
Description: S/MIME cryptographic signature
--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure___
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 -s (and -r) not working

2012-02-20 Thread David Dyer-Bennet
Using check_snmp v1.4.15 (nagios-plugins 1.4.15)

[ddb@prc-mn-lnx01 dev]$ /usr/lib64/nagios/plugins/check_snmp  -H
192.168.1.254 -C XX -o 1.3.6.1.2.1.2.2.1.8.10125 -l ifOperStatus  -s
loser -v
/usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] 192.168.1.254:161
1.3.6.1.2.1.2.2.1.8.10125
iso.3.6.1.2.1.2.2.1.8.10125 = INTEGER: 2
SNMP OK - ifOperStatus 2 | ifOperStatus=2

I'm trying to check an OID value that isn't range-related,
ifOperStatus.port.  As you see, I'm getting back the enum value that
means down.  This does NOT in any way match the -s string I supplied. 
I'm still getting an OK return value.

(Obviously it's easy to wrap this with a script that finds the
ifOperStatus=int and returns what I need.  I'll do that if I have to.)

But...am I misunderstanding what the -s switch does?  Or is the -s switch
completely non-functional in this version?  (I've read about a change
rolled back to restore 1.4.14 behavior, but I didn't read the description
as saying the string matching was completely non-functional before that.)

I've also tried -r for regexps, same results; they seem to be completely
ignored.
-- 
David Dyer-Bennet, d...@dd-b.net; http://dd-b.net/
Snapshots: http://dd-b.net/dd-b/SnapshotAlbum/data/
Photos: http://dd-b.net/photography/gallery/
Dragaera: http://dragaera.info


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
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 to monitor Cisco CPU utilization Memory Used

2012-02-05 Thread Manish Kumar
Dear  List,

I am using check_snmp plugin to monitor Cisco routers and Cisco L3
switches. I want to monitor CPU Utilization percentage  Memory Used/Free
(in MB/KB) for Router and switches. Can someone help me in finding the
exact OID to monitor these KPIs. I am using Net-SNMP package as base. I am
doing snmpget cli to first check the values for the OIDs. Please help.

-- 
Thanks
Manish Kumar
http://in.linkedin.com/in/manishkumar85
--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2___
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 OID integer /10

2012-02-03 Thread Jeffrey Watts
You can always write a script that acts as a wrapper around check_snmp if
you want prettier info displayed.

Jeffrey.

2012/2/1 Sánta József jozsef.sa...@icicom.hu

 Hi!

 ** **

 I have a temperature SNMP device.

 ** **

 snmpget 10.0.0.63 1.3.6.1.4.1.17095.4.1.3.3.0 -c public -v 1

 iso.3.6.1.4.1.17095.4.1.3.3.0 = INTEGER: 40

 ** **

 But I like /10 of the integer…

 ** **

 Something like this:

 ** **

 [oid(1.3.6.1.4.1.17095.4.1.3.3.0)/10]°C

 ** **

 How to add this to the check_snmp command?

 ** **

 Thanks!


 **

--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2___
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 OID integer /10

2012-02-02 Thread Sánta József
Hi!

 

I have a temperature SNMP device.

 

snmpget 10.0.0.63 1.3.6.1.4.1.17095.4.1.3.3.0 -c public -v 1

iso.3.6.1.4.1.17095.4.1.3.3.0 = INTEGER: 40

 

But I like /10 of the integer.

 

Something like this:

 

[oid(1.3.6.1.4.1.17095.4.1.3.3.0)/10]°C

 

How to add this to the check_snmp command?

 

Thanks!

 

Josh

--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2___
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 arguments

2011-08-24 Thread Nibin V M
Hello,

Is there any option to pass argument via check_snmp plugin to the remote
server? Basically I am trying to call a script on the remote server, which I
want to accept an argument from the nagios server  using check_snmp.

Like this,,,

check_snmp -H server -C commun -o extOutput.1 - I want to pass an argument
to the  extOutput.1 script on the remote server when I call this command
from nagios server.

Is it possible?

-- 
Regards,
Nibin.
-
Nibin.V.M
Systems Integrator
PiServe.com
--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev___
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 output unit conversion

2011-07-15 Thread Mark Nipper
On 14 Jul 2011, Mark Nipper wrote:
 $ check_snmp -H 172.16.74.130 -P 1 -C public -o 
 .1.3.6.1.4.1.318.1.1.1.2.2.3.0 -w 20 -c 205000
 SNMP WARNING - *204000* | iso.3.6.1.4.1.318.1.1.1.2.2.3.0=204000 

To answer my own stupid question, the obvious form should
look something like:
---
$ check_snmp -H 172.16.74.130 -P 1 -C public -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0 
-w 205000: -c 203000:
SNMP WARNING - *204000* | iso.3.6.1.4.1.318.1.1.1.2.2.3.0=204000 

Having said that, there's definitely an issue with
thresholds on at least some of the 1.4.15 packages available out
there as RPM's (like the current EPEL one), so make sure you're
not affected or you might be missing alerts.

And I'm still curious why the timetick to minute
conversion gets dropped in that output.  Anyone have a suggestion
for that?

-- 
Mark Nipper
ni...@bitgnome.net (XMPP)
+1 979 575 3193
-
I love deadlines. I like the whooshing sound they make as
they fly by.
 -- Douglas Adams

--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
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 output unit conversion

2011-07-14 Thread Mark Nipper
On 31 Mar 2011, cas...@activenetwerx.com wrote:
 Well, I'm using 1.4.15 from rpmforge on rhel and it works, what can I say:)

I'm using the EPEL version of the same packages and it's
not working in any way that I can divine.  I ran across this
post:
---
http://permalink.gmane.org/gmane.network.nagios.plugins/4971

basically indicating that some of the 1.4.15 packages are
definitely broken.  I've installed the latest version listed in
that thread which is from 29 Apr 2011, which seems to partially
work, but maybe not in any useful way.

Some examples:
---
$ check_snmp -H 172.16.74.130 -P 1 -C public -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0
SNMP OK - Timeticks: (204000) 0:34:00.00 | 
$ check_snmp -H 172.16.74.130 -P 1 -C public -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0 
-w 203999 
SNMP WARNING - *204000* | iso.3.6.1.4.1.318.1.1.1.2.2.3.0=204000 
$ check_snmp -H 172.16.74.130 -P 1 -C public -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0 
-w 204001
SNMP OK - 204000 | iso.3.6.1.4.1.318.1.1.1.2.2.3.0=204000 
$ check_snmp -H 172.16.74.130 -P 1 -C public -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0 
-w 20 -c 205000
SNMP WARNING - *204000* | iso.3.6.1.4.1.318.1.1.1.2.2.3.0=204000 
---

So, am I to conclude that things haven't entirely been
fixed even in this latest release of 1.4.15?  And why does
specifying thresholds stop the unit conversion in the output?

My primary concern is that the threshold values seem to
be inverted and that there is no logical way to specify your own
thresholds based on this.

-- 
Mark Nipper
ni...@bitgnome.net (XMPP)
+1 979 575 3193
-
Objective journalism is one of the main reasons American
politics has been allowed to be so corrupt for so long.  You
can't be objective about Nixon.
 -- Hunter S. Thompson in an interview for The Atlantic

--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
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 help

2011-04-13 Thread Jason . Shaffer
This value is the number of IP's in a dhcp scope that are available for 
use. I want it to go to warning if there are less than 23 left and 
critical if there are less than 16 left.


Putting the range in starting at zero gets the same result.

./check_snmp -C s8n1mp  -H Corp208 -o 
.1.3.6.1.4.1.311.1.3.2.1.1.3.172.20.2.0 -w 0:23 -c 0:16
SNMP CRITICAL - *97* | iso.3.6.1.4.1.311.1.3.2.1.1.3.172.20.2.0=97c --
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo___
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 help

2011-04-12 Thread Jason . Shaffer
I am having problems with the checksnmp command, I am running some 
check_snmp commands against our DHCP server. In this specific instance I 
want a warning if the value is 17:23 and a critical if the value is 0:16, 
regardless of how i type it in, I get a critical message. Any ideas?

./check_snmp -C s8n1mp  -H Corp208 -o 
.1.3.6.1.4.1.311.1.3.2.1.1.3.172.20.2.0 -w 17:23 -c 0:16
SNMP CRITICAL - *97* | iso.3.6.1.4.1.311.1.3.2.1.1.3.172.20.2.0=97c 


./check_snmp -C s8n1mp  -H Corp208 -o 
.1.3.6.1.4.1.311.1.3.2.1.1.3.172.20.2.0 -c 0:16 -w 16:23
SNMP CRITICAL - *97* | iso.3.6.1.4.1.311.1.3.2.1.1.3.172.20.2.0=97c 


If I put the vaules in backwards (i.e. -w 23:17 -c 16:0) I get an invalid 
date response.

/check_snmp -C s8n1mp  -H Corp208 -n -o 
.1.3.6.1.4.1.311.1.3.2.1.1.3.172.20.2.0 -c 16:0 -w 23:17
Range format incorrect


--
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo___
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 output unit conversion

2011-03-30 Thread Cameron Camp
I'm running a command like:

./check_snmp -H 1.2.3.4 -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0 -w 15 -c 5 -l
'Runtime Remaining' -u 'Minutes'

on an APC UPS monitoring card, which outputs in seconds like:

SNMP CRITICAL - Runtime Remaining *132000* Minutes | Runtime
Remaining=132000

which is 22 minutes. If I divide the output by 6000 I get 22, how would
I adjust the output to give me this? I could do it with bash piping, but
suspect there's a better way to do it (and it might break something with
check_snmp command and the rest of nagios).

thx, 
Cameron


--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
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 output unit conversion

2011-03-30 Thread Joseph L. Casale
./check_snmp -H 1.2.3.4 -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0 -w 15 -c 5 -l
'Runtime Remaining' -u 'Minutes'

on an APC UPS monitoring card, which outputs in seconds like:

SNMP CRITICAL - Runtime Remaining *132000* Minutes | Runtime
Remaining=132000

which is 22 minutes. If I divide the output by 6000 I get 22, how would
I adjust the output to give me this? I could do it with bash piping, but
suspect there's a better way to do it (and it might break something with
check_snmp command and the rest of nagios).

What version of check_snmp? Mine is current and yields expected data.
jlc

--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
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 output unit conversion

2011-03-30 Thread Cameron Camp
./check_snmp -H 1.2.3.4 -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0 -w 15 -c 5
-l
'Runtime Remaining' -u 'Minutes'
SNMP CRITICAL - Runtime Remaining *132000* Minutes | Runtime
Remaining=132000

which is 22 minutes. 

What version of check_snmp? Mine is current and yields expected data.
jlc

packages listed below from Debian Squeeze standard repos

Nagios3 3.2.1
nagios_plugins 1.4.15
check_snmp 1.4.15

thx,
Cameron



--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
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 output unit conversion

2011-03-30 Thread Cameron Camp
./check_snmp -H 1.2.3.4 -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0 -w 15 -c 5
-l
'Runtime Remaining' -u 'Minutes'
SNMP CRITICAL - Runtime Remaining *132000* Minutes | Runtime
Remaining=132000

which is 22 minutes. 

What version of check_snmp? Mine is current and yields expected data.
jlc

packages listed below from Debian Squeeze standard repos

Nagios3 3.2.1
nagios_plugins 1.4.15
check_snmp 1.4.15

what is strange is that it converts when I have no -w or -c
./check_snmp -H 1.2.3.4 -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0
: SNMP OK - Timeticks: (138000) 0:23:00.00 |

but when I include warn/critical it shows seconds again, no matter
whether I use seconds like 

./check_snmp -H 1.2.3.4 -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0 -w 10 -c
8
: SNMP CRITICAL - *138000* | iso.3.6.1.4.1.318.1.1.1.2.2.3.0=138000

or minutes like
./check_snmp -H 1.2.3.4 -o .1.3.6.1.4.1.318.1.1.1.2.2.3.0 -w 15 -c 10
: SNMP CRITICAL - *132000* | iso.3.6.1.4.1.318.1.1.1.2.2.3.0=132000

Thx,
Cameron




--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
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 output unit conversion

2011-03-30 Thread Joseph L. Casale
check_snmp 1.4.15

Well, I'm using 1.4.15 from rpmforge on rhel and it works, what can I say:)

--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
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 -d -s

2011-02-11 Thread Tristan Drinkwater
Morning all,

I'm trying to refine a few snmp checks I do.

My command looks like this;

./check_snmp -H xx.xx.xx.xx -o READyNAS-MIB::diskState.1 -C nas-drive -P 2c -v


This produces the following;

/usr/bin/snmpget -t 1 -r 5 -m ALL -v 2c [authpriv] xx.xx.xx.xx 
READYNAS-MIB::diskState.1
READYNAS-MIB::diskState.1 = STRING: dead
SNMP OK - dead |


Now, as you can see from above, my disk 2 is 'dead' but Nagios reports this as 
ok. I'm under the impression I need to use the '-s' switch to specify what is 
good and what is bad, based on matching a string from the output.

To me, the output above would suggest that the returning string is dead so to 
get it to report that this is actually bad I should use -s ok  as ok is the 
string returned on all the other disks that are working ok.

- working disk---
/usr/bin/snmpget -t 1 -r 5 -m ALL -v 2c [authpriv] xx.xx.xx.xx 
READYNAS-MIB::diskState.2
READYNAS-MIB::diskState.2 = STRING: ok
SNMP OK - ok |
- working disk---



Sadly, this doesn't work as it seems that ok and dead aren't the returning 
strings. Neither are 1 and 0 as stated in the readynas MIB documentation.

Anyone got any ideas??

Have I messed up the syntax??

Thanks in advance,

Tristan





Micro Peripherals Limited.
Registered Office: Shorten Brook Way, Altham Business Park, Altham,
Accrington, Lancs. BB5 5YJ. Tel: (01282) 776776 Fax: (01282) 858790
Micro Peripherals Limited. Registered in England No. 1511931. VAT No. GB 864 
4387 91

DISCLAIMER:
This e-mail and attachments are confidential and are intended solely for the 
use of the individual to
whom it is addressed. Any views or opinions presented are solely those of the 
author and do not
necessarily represent those of Micro Peripherals Limited.
If you are not the intended recipient, be advised that you have received this 
Email in error and that
any use, dissemination, forwarding, printing, or copying of this Email is 
strictly prohibited. If this
transmission is received in error please notify the sender immediately and 
delete this message from
your E-mail system.
All electronic transmissions to and from Micro Peripherals Ltd are recorded and 
may be monitored.
--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb___
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 -d -s

2011-02-11 Thread Yueh-Hung Liu
you can write a wrap script, which would be the check command, to deal
the return string and report correct status to Nagios.
of course this script will use check_snmp in it.


On Fri, Feb 11, 2011 at 7:08 PM, Tristan Drinkwater
trist...@micro-p.com wrote:
 Morning all,



 I’m trying to refine a few snmp checks I do.



 My command looks like this;



 ./check_snmp –H xx.xx.xx.xx –o READyNAS-MIB::diskState.1 –C nas-drive –P 2c
 –v





 This produces the following;



 /usr/bin/snmpget –t 1 –r 5 –m ALL –v 2c [authpriv] xx.xx.xx.xx
 READYNAS-MIB::diskState.1

 READYNAS-MIB::diskState.1 = STRING: “dead”

 SNMP OK – “dead” |





 Now, as you can see from above, my disk 2 is ‘dead’ but Nagios reports this
 as ok. I’m under the impression I need to use the ‘–s’ switch to specify
 what is good and what is bad, based on matching a string from the output.



 To me, the output above would suggest that the returning string is “dead” so
 to get it to report that this is actually bad I should use “-s ok”  as “ok”
 is the string returned on all the other disks that are working ok.



 - working disk---

 /usr/bin/snmpget –t 1 –r 5 –m ALL –v 2c [authpriv] xx.xx.xx.xx
 READYNAS-MIB::diskState.2

 READYNAS-MIB::diskState.2 = STRING: “ok”

 SNMP OK – “ok” |

 - working disk---







 Sadly, this doesn’t work as it seems that “ok” and “dead” aren’t the
 returning strings. Neither are 1 and 0 as stated in the readynas MIB
 documentation.



 Anyone got any ideas??



 Have I messed up the syntax??



 Thanks in advance,



 Tristan







 
 Micro Peripherals Limited.
 Registered Office: Shorten Brook Way, Altham Business Park, Altham,
 Accrington, Lancs. BB5 5YJ. Tel: (01282) 776776 Fax: (01282) 858790
 Micro Peripherals Limited. Registered in England No. 1511931. VAT No. GB 864
 4387 91

 DISCLAIMER:
 This e-mail and attachments are confidential and are intended solely for the
 use of the individual to
 whom it is addressed. Any views or opinions presented are solely those of
 the author and do not
 necessarily represent those of Micro Peripherals Limited.
 If you are not the intended recipient, be advised that you have received
 this Email in error and that
 any use, dissemination, forwarding, printing, or copying of this Email is
 strictly prohibited. If this
 transmission is received in error please notify the sender immediately and
 delete this message from
 your E-mail system.
 All electronic transmissions to and from Micro Peripherals Ltd are recorded
 and may be monitored.

 --
 The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
 Pinpoint memory and threading errors before they happen.
 Find and fix more than 250 security defects in the development cycle.
 Locate bottlenecks in serial and parallel code that limit performance.
 http://p.sf.net/sfu/intel-dev2devfeb
 ___
 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


--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
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 -d -s

2011-02-11 Thread Giles Coochey

On 11/02/2011 12:08, Tristan Drinkwater wrote:


Morning all,

I’m trying to refine a few snmp checks I do.

My command looks like this;

./check_snmp –H xx.xx.xx.xx –o READyNAS-MIB::diskState.1 –C nas-drive 
–P 2c –v


This produces the following;

/usr/bin/snmpget –t 1 –r 5 –m ALL –v 2c [authpriv] xx.xx.xx.xx 
READYNAS-MIB::diskState.1


READYNAS-MIB::diskState.1 = STRING: “dead”

SNMP OK – “dead” |

Now, as you can see from above, my disk 2 is ‘dead’ but Nagios reports 
this as ok. I’m under the impression I need to use the ‘–s’ switch to 
specify what is good and what is bad, based on matching a string from 
the output.


To me, the output above would suggest that the returning string is 
“dead” so to get it to report that this is actually bad I should use 
“-s ok” as “ok” is the string returned on all the other disks that are 
working ok.


- working disk---

/usr/bin/snmpget –t 1 –r 5 –m ALL –v 2c [authpriv] xx.xx.xx.xx 
READYNAS-MIB::diskState.2


READYNAS-MIB::diskState.2 = STRING: “ok”

SNMP OK – “ok” |

- working disk---

Sadly, this doesn’t work as it seems that “ok” and “dead” aren’t the 
returning strings. Neither are 1 and 0 as stated in the readynas MIB 
documentation.


Anyone got any ideas??

Have I messed up the syntax??



Have you tried --eregi=ok

?

--
Best Regards,

Giles Coochey
NetSecSpec Ltd
NL T-Systems Mobile: +31 681 265 086
NL Mobile: +31 626 508 131
GIB Mobile: +350 5401 6693
Email/MSN/Live Messenger: gi...@coochey.net
Skype: gilescoochey





smime.p7s
Description: S/MIME Cryptographic Signature
--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb___
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 -d -s

2011-02-11 Thread Tristan Drinkwater
Hi,

I have just tried that not but dice. :(

-Original Message-
From: Giles Coochey [mailto:gi...@coochey.net]
Sent: 11 February 2011 11:25
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Check_snmp -d  -s

On 11/02/2011 12:08, Tristan Drinkwater wrote:

 Morning all,

 I'm trying to refine a few snmp checks I do.

 My command looks like this;

 ./check_snmp -H xx.xx.xx.xx -o READyNAS-MIB::diskState.1 -C nas-drive
 -P 2c -v

 This produces the following;

 /usr/bin/snmpget -t 1 -r 5 -m ALL -v 2c [authpriv] xx.xx.xx.xx
 READYNAS-MIB::diskState.1

 READYNAS-MIB::diskState.1 = STRING: dead

 SNMP OK - dead |

 Now, as you can see from above, my disk 2 is 'dead' but Nagios reports
 this as ok. I'm under the impression I need to use the '-s' switch to
 specify what is good and what is bad, based on matching a string from
 the output.

 To me, the output above would suggest that the returning string is
 dead so to get it to report that this is actually bad I should use
 -s ok as ok is the string returned on all the other disks that are
 working ok.

 - working disk---

 /usr/bin/snmpget -t 1 -r 5 -m ALL -v 2c [authpriv] xx.xx.xx.xx
 READYNAS-MIB::diskState.2

 READYNAS-MIB::diskState.2 = STRING: ok

 SNMP OK - ok |

 - working disk---

 Sadly, this doesn't work as it seems that ok and dead aren't the
 returning strings. Neither are 1 and 0 as stated in the readynas MIB
 documentation.

 Anyone got any ideas??

 Have I messed up the syntax??


Have you tried --eregi=ok

?

--
Best Regards,

Giles Coochey
NetSecSpec Ltd
NL T-Systems Mobile: +31 681 265 086
NL Mobile: +31 626 508 131
GIB Mobile: +350 5401 6693
Email/MSN/Live Messenger: gi...@coochey.net
Skype: gilescoochey




Micro Peripherals Limited.
Registered Office: Shorten Brook Way, Altham Business Park, Altham,
Accrington, Lancs. BB5 5YJ.  Tel: (01282) 776776   Fax: (01282) 858790
Micro Peripherals Limited. Registered in England No. 1511931. VAT No. GB 864 
4387 91

DISCLAIMER:
This e-mail and attachments are confidential and are intended solely for the 
use of the individual to
whom it is addressed. Any views or opinions presented are solely those of the 
author and do not
necessarily represent those of Micro Peripherals Limited.
If you are not the intended recipient, be advised that you have received this 
Email in error and that
any use, dissemination, forwarding, printing, or copying of this Email is 
strictly prohibited. If this
transmission is received in error please notify the sender immediately and 
delete this message from
your E-mail system.
All electronic transmissions to and from Micro Peripherals Ltd are recorded and 
may be monitored.

--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
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 -d -s

2011-02-11 Thread Tristan Drinkwater
Hi,

Just in case anyone wanted to know..

I resolved my issue my created a wrap script for the check_snmp plugin.

Quite simple really :)

 script


#!/bin/bash

# Run check_snmp with param
check=$(/usr/local/nagios/libexec/check_snmp -H $1 -o $2 -C nas-drive -P 2c)

# echo result (testing)
# echo $check

# return result if CRITICAL
if [[ $check == *dead* ]]
then
echo Disk OFFLINE - CRITICAL;
exit 2
fi

# return result if OK
if [[ $check == *ok* ]]
then
echo Disk Online - OK;
exit 0
fi

# end script




-Original Message-
From: Tristan Drinkwater [mailto:trist...@micro-p.com] 
Sent: 11 February 2011 11:34
To: Nagios Users List
Subject: Re: [Nagios-users] Check_snmp -d  -s

Interesting.

How do I go about a wrap script then?

I take it I call the script from the command_check line?  Anything special 
about outputting the result so Nagios can see it?

thanks

-Original Message-
From: Yueh-Hung Liu [mailto:yuehung@gmail.com]
Sent: 11 February 2011 11:24
To: Nagios Users List
Subject: Re: [Nagios-users] Check_snmp -d  -s

you can write a wrap script, which would be the check command, to deal the 
return string and report correct status to Nagios.
of course this script will use check_snmp in it.


On Fri, Feb 11, 2011 at 7:08 PM, Tristan Drinkwater trist...@micro-p.com 
wrote:
 Morning all,



 I'm trying to refine a few snmp checks I do.



 My command looks like this;



 ./check_snmp -H xx.xx.xx.xx -o READyNAS-MIB::diskState.1 -C nas-drive 
 -P 2c -v





 This produces the following;



 /usr/bin/snmpget -t 1 -r 5 -m ALL -v 2c [authpriv] xx.xx.xx.xx
 READYNAS-MIB::diskState.1

 READYNAS-MIB::diskState.1 = STRING: dead

 SNMP OK - dead |





 Now, as you can see from above, my disk 2 is 'dead' but Nagios reports 
 this as ok. I'm under the impression I need to use the '-s' switch to 
 specify what is good and what is bad, based on matching a string from the 
 output.



 To me, the output above would suggest that the returning string is 
 dead so to get it to report that this is actually bad I should use -s ok  
 as ok
 is the string returned on all the other disks that are working ok.



 - working disk---

 /usr/bin/snmpget -t 1 -r 5 -m ALL -v 2c [authpriv] xx.xx.xx.xx
 READYNAS-MIB::diskState.2

 READYNAS-MIB::diskState.2 = STRING: ok

 SNMP OK - ok |

 - working disk---







 Sadly, this doesn't work as it seems that ok and dead aren't the 
 returning strings. Neither are 1 and 0 as stated in the readynas MIB 
 documentation.



 Anyone got any ideas??



 Have I messed up the syntax??



 Thanks in advance,



 Tristan







 
 Micro Peripherals Limited.
 Registered Office: Shorten Brook Way, Altham Business Park, Altham, 
 Accrington, Lancs. BB5 5YJ. Tel: (01282) 776776 Fax: (01282) 858790 
 Micro Peripherals Limited. Registered in England No. 1511931. VAT No.
 GB 864
 4387 91

 DISCLAIMER:
 This e-mail and attachments are confidential and are intended solely 
 for the use of the individual to whom it is addressed. Any views or 
 opinions presented are solely those of the author and do not 
 necessarily represent those of Micro Peripherals Limited.
 If you are not the intended recipient, be advised that you have 
 received this Email in error and that any use, dissemination, 
 forwarding, printing, or copying of this Email is strictly prohibited.
 If this transmission is received in error please notify the sender 
 immediately and delete this message from your E-mail system.
 All electronic transmissions to and from Micro Peripherals Ltd are 
 recorded and may be monitored.

 --
  The ultimate all-in-one performance toolkit: Intel(R) 
 Parallel Studio XE:
 Pinpoint memory and threading errors before they happen.
 Find and fix more than 250 security defects in the development cycle.
 Locate bottlenecks in serial and parallel code that limit performance.
 http://p.sf.net/sfu/intel-dev2devfeb
 ___
 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


--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
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

Re: [Nagios-users] Check_snmp -d -s

2011-02-11 Thread Greg Pangrazio
You might think about putting an else clause that returns unknown
just to cover all of your bases.  Right now if the line doesn't match
the script will not return anything.

Greg Pangrazio





On Fri, Feb 11, 2011 at 11:57 AM, Tristan Drinkwater
trist...@micro-p.com wrote:
 Hi,

 Just in case anyone wanted to know..

 I resolved my issue my created a wrap script for the check_snmp plugin.

 Quite simple really :)

  script


 #!/bin/bash

 # Run check_snmp with param
 check=$(/usr/local/nagios/libexec/check_snmp -H $1 -o $2 -C nas-drive -P 2c)

 # echo result (testing)
 # echo $check

 # return result if CRITICAL
 if [[ $check == *dead* ]]
 then
        echo Disk OFFLINE - CRITICAL;
        exit 2
 fi

 # return result if OK
 if [[ $check == *ok* ]]
 then
        echo Disk Online - OK;
        exit 0
 fi

 # end script




 -Original Message-
 From: Tristan Drinkwater [mailto:trist...@micro-p.com]
 Sent: 11 February 2011 11:34
 To: Nagios Users List
 Subject: Re: [Nagios-users] Check_snmp -d  -s

 Interesting.

 How do I go about a wrap script then?

 I take it I call the script from the command_check line?  Anything special 
 about outputting the result so Nagios can see it?

 thanks

 -Original Message-
 From: Yueh-Hung Liu [mailto:yuehung@gmail.com]
 Sent: 11 February 2011 11:24
 To: Nagios Users List
 Subject: Re: [Nagios-users] Check_snmp -d  -s

 you can write a wrap script, which would be the check command, to deal the 
 return string and report correct status to Nagios.
 of course this script will use check_snmp in it.


 On Fri, Feb 11, 2011 at 7:08 PM, Tristan Drinkwater trist...@micro-p.com 
 wrote:
 Morning all,



 I'm trying to refine a few snmp checks I do.



 My command looks like this;



 ./check_snmp -H xx.xx.xx.xx -o READyNAS-MIB::diskState.1 -C nas-drive
 -P 2c -v





 This produces the following;



 /usr/bin/snmpget -t 1 -r 5 -m ALL -v 2c [authpriv] xx.xx.xx.xx
 READYNAS-MIB::diskState.1

 READYNAS-MIB::diskState.1 = STRING: dead

 SNMP OK - dead |





 Now, as you can see from above, my disk 2 is 'dead' but Nagios reports
 this as ok. I'm under the impression I need to use the '-s' switch to
 specify what is good and what is bad, based on matching a string from the 
 output.



 To me, the output above would suggest that the returning string is
 dead so to get it to report that this is actually bad I should use -s 
 ok  as ok
 is the string returned on all the other disks that are working ok.



 - working disk---

 /usr/bin/snmpget -t 1 -r 5 -m ALL -v 2c [authpriv] xx.xx.xx.xx
 READYNAS-MIB::diskState.2

 READYNAS-MIB::diskState.2 = STRING: ok

 SNMP OK - ok |

 - working disk---







 Sadly, this doesn't work as it seems that ok and dead aren't the
 returning strings. Neither are 1 and 0 as stated in the readynas MIB
 documentation.



 Anyone got any ideas??



 Have I messed up the syntax??



 Thanks in advance,



 Tristan







 
 Micro Peripherals Limited.
 Registered Office: Shorten Brook Way, Altham Business Park, Altham,
 Accrington, Lancs. BB5 5YJ. Tel: (01282) 776776 Fax: (01282) 858790
 Micro Peripherals Limited. Registered in England No. 1511931. VAT No.
 GB 864
 4387 91

 DISCLAIMER:
 This e-mail and attachments are confidential and are intended solely
 for the use of the individual to whom it is addressed. Any views or
 opinions presented are solely those of the author and do not
 necessarily represent those of Micro Peripherals Limited.
 If you are not the intended recipient, be advised that you have
 received this Email in error and that any use, dissemination,
 forwarding, printing, or copying of this Email is strictly prohibited.
 If this transmission is received in error please notify the sender
 immediately and delete this message from your E-mail system.
 All electronic transmissions to and from Micro Peripherals Ltd are
 recorded and may be monitored.

 --
  The ultimate all-in-one performance toolkit: Intel(R)
 Parallel Studio XE:
 Pinpoint memory and threading errors before they happen.
 Find and fix more than 250 security defects in the development cycle.
 Locate bottlenecks in serial and parallel code that limit performance.
 http://p.sf.net/sfu/intel-dev2devfeb
 ___
 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


 --
 The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
 Pinpoint memory and threading errors before they happen.
 Find and fix more than 250 security defects in the development cycle.
 Locate bottlenecks in serial

Re: [Nagios-users] check_snmp not

2011-02-10 Thread Joseph L. Casale
I've installed Nagios 3.2.3 on fedora 14 but I'm struggling with getting the
check_snmp plugin working. It isn't in the libexec folder and there is NO
mention of it when I compile the plugins with ./configure, make and make 
install.

Compiling in a package based OS?
Try this: `yum whatprovides \*/check_snmp`
But now you don't have the prerequisite rpms for Nagios as you compiled.

You need to compile the plugins source.

In the future, on a package based distro, use the package manager...

--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
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 not

2011-02-10 Thread Joseph L. Casale
Thanks for the replies.

No problem...

I've managed to get it working by running 'yum install Nagios 
Nagios-plugins-snmp' and then moving the file 'check_snmp' from /usr/lib to 
/usr/local/Nagios/libexec

Good to see your using the tools provided by the OS, truth is when you manually
install software in a packaged based distro you often mangle it. On that note, 
which
command definition desired to find the binary in /usr/local/Nagios/libexec ? 
Possibly
one from the manually compiled config files? If the one from the rpm did this, 
it's a
bug that should be filed. If I was you, I would move it back as that's where 
the rpm
database expects it and fix your config template or at the very most, link to 
it...

YMMV,
jlc

--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
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

2010-12-20 Thread Jones, Stuart
Hello Jorge,

 

Here is an example of my Nagios - Cisco switch port status - monitor
entry, see if it helps you:

 

define service{

   use generic-service  

   host_name   Site-1 rtr Lo0 interface - r01c37  

   service_description  Interface Fa0/1 connection to
primary c6504 LAN switch sr002-c6504 - Link Status

   check_command   check_snmp!-C Public -o
ifOperStatus.5 -r 1 -m RFC1213-MIB ; 1 is up, 2 is down, 3 is testing, 4
is unknown, 5 is dormant

   }

 

Rgds, Stuart



From: Jorge Arenas [mailto:jorge...@hotmail.com] 
Sent: Friday, 17 December 2010 10:16 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] check_snmp

 

Hi:
 
i just install nagios and I am following the basic guide in the site to
monitor a switch 
 
i create the file and work well, but 
 
all switch ports are reported in OK status always 
 
i check the output ok the command:
 
check_snmp -C public -H switch -r 1   etc
 
and even when the port reports status of 2 ( down) the -r 1 parameter
is not working and the report send SNMP OK for down ports 
 
 
I read the instruccions but i can not find any information regarding the
-r (regex) parameter
 
I Found a workaround changing the -r 1  for the -c 1:1 
 
but I do not know if the documentation in the site is out-dated or i am
making something wrong
 
 
any ideas 
 
thanks in advance
 
Jorge Arenas
CSA Mexico

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d___
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

2010-12-16 Thread Jorge Arenas

Hi:
 
i just install nagios and I am following the basic guide in the site to monitor 
a switch 
 
i create the file and work well, but 
 
all switch ports are reported in OK status always 
 
i check the output ok the command:
 
check_snmp -C public -H switch -r 1   etc
 
and even when the port reports status of 2 ( down) the -r 1 parameter is not 
working and the report send SNMP OK for down ports 
 
 
I read the instruccions but i can not find any information regarding the -r 
(regex) parameter
 
I Found a workaround changing the -r 1  for the -c 1:1 
 
but I do not know if the documentation in the site is out-dated or i am making 
something wrong
 
 
any ideas 
 
thanks in advance
 
Jorge Arenas
CSA Mexico--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d___
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

2010-12-16 Thread James Pratt
you could try these instead of check_snmp , i always found check_snmp to
be too limited... :\  

 

http://nagios.manubulon.com

 

From: Jorge Arenas [mailto:jorge...@hotmail.com] 
Sent: Thursday, December 16, 2010 9:16 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] check_snmp

 

Hi:
 
i just install nagios and I am following the basic guide in the site to
monitor a switch 
 
i create the file and work well, but 
 
all switch ports are reported in OK status always 
 
i check the output ok the command:
 
check_snmp -C public -H switch -r 1   etc
 
and even when the port reports status of 2 ( down) the -r 1 parameter
is not working and the report send SNMP OK for down ports 
 
 
I read the instruccions but i can not find any information regarding the
-r (regex) parameter
 
I Found a workaround changing the -r 1  for the -c 1:1 
 
but I do not know if the documentation in the site is out-dated or i am
making something wrong
 
 
any ideas 
 
thanks in advance
 
Jorge Arenas
CSA Mexico

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d___
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 new feature

2010-09-02 Thread Ton Voon
Hi!

Just want to let you know about a new blog article about the new  
feature in check_snmp where it measures rate changes in SNMP.

http://bit.ly/cdNQlu

It was developed for a customer of Opsview (http://opsview.com), but  
is now in Nagios Plugins for everyone to use. Enjoy!

Thanks to Holger for ideas on the C interface to the state change  
functions.

Ton


--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
___
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 not working, but snmpget does

2010-08-05 Thread Adam Carter - Vantage IT
Hello,

I am running nagios 2.9 on Ubuntu server.  It has been functioning fine

and we are starting to monitor more equipment.  I am trying to get SNMP
to

work with the idea of monitoring a Cisco 501 through an ipsec tunnel.

 

The VPN/networking side works fine, it is just Nagios I cannot get to
work.

 

If I run snmpwalk:

snmpwalk  -v 1 -c public x.x.x.x

 

then it reutrns back the full result set from a mixture of mibs

(SNMPv2-MIB,IF-MIB being the main ones)

 

snmpget on a speceifc OID:

 

snmpget  -v 1 -c public x.x.x.x ifNumber.0

IF-MIB::ifNumber.0 = INTEGER: 2

 

If I try and run the check_snmp command manually, specifying the snmp v1
I

get the following:

 ./check_snmp -H 10.0.30.1 -c cisco-assp -P 1 -o IF-MIB::ifNumber.0

External command error: Cannot find module (IF-MIB): At line 0 in (none)

IF-MIB::ifNumber.0: Unknown Object Identifier

 

 

The MIBS are in /usr/share/snmp/mibs, I have run the export MIBDIRS

command to locate to the correct location, but check_snmp still has
issue

with finding them.

 

Any ideas anyone?

 

 


Adam Carter 
adam.car...@vantageit.co.uk
http://www.vantageit.co.uk/
http://www.vantageit.co.uk/contact.php
http://www.vantageit.co.uk/contact.php
Please visit our website at: http://www.vantageit.co.uk/ 
This email 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 have received this email in error please notify the sender and then delete 
it. Any views or opinions in this email are solely those of the author and do 
not necessarily represent those of the company. The recipient should check this 
email and any attachments for the presence of harmful code. The company accepts 
no liability for any damage caused by any harmful code transmitted by or with 
this email. 


image/gifimage/gifimage/gif--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm___
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 v3 authentication

2010-07-30 Thread Etienne Ringuet
Hello,

 

I am trying to use check_snmp to monitor different snmp states on our
hardware. 

 

Our system uses snmp v3. If I use snmpget to access it, it works:

 

ering...@test:/usr/lib/nagios/plugins$ snmpget -a MD5 -l authNoPriv -u
USERNAME -A PASSWORD -v3 192.168.1.150  sysUpTime.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (15742663) 1 day,

19:43:46.63

 

But when using check_snmp I get no securityname specified:

 

ering...@test:/usr/lib/nagios/plugins$ ./check_snmp -H 192.168.1.150 -o
sysUpTime.0 -P3 -l authNoPriv -U USERNAME -a MD5 -A PASSWORD External
command error: snmpget: No securityName specified (Sub-id not

found: (top) - sysUpTime)

 

 

Am I missing something?

 

Thanks,

 

Etienne

 

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm___
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 v3 authentication

2010-07-21 Thread Etienne Ringuet
Hello,

I am trying to use check_snmp to monitor different snmp states on our
hardware. 

Our system uses snmp v3. If I use snmpget to access it, it works:

ering...@test:/usr/lib/nagios/plugins$ snmpget -a MD5 -l authNoPriv -u
USERNAME -A PASSWORD -v3 192.168.1.150  sysUpTime.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (15742663) 1 day,
19:43:46.63

But when using check_snmp I get no securityname specified:

ering...@test:/usr/lib/nagios/plugins$ ./check_snmp -H 192.168.1.150 -o
sysUpTime.0 -P3 -l authNoPriv -U USERNAME -a MD5 -A PASSWORD
External command error: snmpget: No securityName specified (Sub-id not
found: (top) - sysUpTime)


Am I missing something?

Thanks,

Etienne 

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
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 Cisco 7304

2010-06-23 Thread Richard Gliebe
Hi all,

I'm running some scripts, which are checking our Cisco Routers 
(PowerSupplies/Temperature/Fans)

The standard Cisco Mibs for the 6500er Cisco series works fine, but
not for the 7300 cisco series.

What I need, are the mibs for temperature, Chassis Fans, and the mibs 
for the Powersupplies and the powersupply fans.

I found the powersupply mibs with snmpwalk, but not the mibs for the 
powersupply state (ok/Fault), also the mibs for the chassis fan(s).

# snmpget -v1 -ccommunity cisco 7304 Router .1.3.6.1.2.1.47.1.1.1.1.7.35
SNMPv2-SMI::mib-2.47.1.1.1.1.7.35 = STRING: Cisco 7304 AC Power Supply 1
# snmpget -v1 -ccommunity cisco 7304 Router .1.3.6.1.2.1.47.1.1.1.1.7.57
SNMPv2-SMI::mib-2.47.1.1.1.1.7.57 = STRING: Cisco 7304 AC Power Supply 2

Searching www.mibdepot.com, www.cisco.com and google was without luck.

Here is an output from one of our Cisco 6500 Routers:

PowerSupply-1Fan

OK  06-23-2010 08:41:22 967d 20h 5m 0s  1/3 Fan Power 
Supply 2 Fan: OK

PowerSupply-1State

OK  06-23-2010 08:41:59 769d 7h 43m 9s  1/3 PowerSupply 
Power Supply 
1, WS-CAC-3000W: OK

PowerSupply-2Fan

OK  06-23-2010 08:42:34 967d 19h 21m 19s1/3 Fan 
Chassis Fan Tray 
1: OK

PowerSupply-2State

OK  06-23-2010 08:43:10 967d 19h 21m 10s1/3 
PowerSupply Power 
Supply 2, WS-CAC-3000W: OK

TemperatureState

OK  06-23-2010 08:43:46 61d 11h 53m 2s  1/3 Temperature 
(degrees 
Celsius) OK - 34

Any hints are welcome ;-)

many thanks
Richard

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
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 Cisco 7304

2010-06-23 Thread Ortner, Gerald
Hi,
Have a look at https://support.ipmonitor.com/mibs/CISCO-ENVMON-MIB/tree.aspx
For Cisco 3701 temperature:
SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.1 = STRING: Thermal Sensor 1
SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.2 = STRING: Thermal Sensor 2
SNMPv2-SMI::enterprises.9.9.13.1.3.1.3.1 = Gauge32: 20
SNMPv2-SMI::enterprises.9.9.13.1.3.1.3.2 = Gauge32: 23
Gerald
-Ursprüngliche Nachricht-
Von: Richard Gliebe [mailto:richard.gli...@fhv.at] 
Gesendet: Mittwoch, 23. Juni 2010 08:50
An: nagios-users
Betreff: [Nagios-users] check_snmp Cisco 7304

Hi all,

I'm running some scripts, which are checking our Cisco Routers 
(PowerSupplies/Temperature/Fans)

The standard Cisco Mibs for the 6500er Cisco series works fine, but
not for the 7300 cisco series.

What I need, are the mibs for temperature, Chassis Fans, and the mibs 
for the Powersupplies and the powersupply fans.

I found the powersupply mibs with snmpwalk, but not the mibs for the 
powersupply state (ok/Fault), also the mibs for the chassis fan(s).

# snmpget -v1 -ccommunity cisco 7304 Router .1.3.6.1.2.1.47.1.1.1.1.7.35
SNMPv2-SMI::mib-2.47.1.1.1.1.7.35 = STRING: Cisco 7304 AC Power Supply 1
# snmpget -v1 -ccommunity cisco 7304 Router .1.3.6.1.2.1.47.1.1.1.1.7.57
SNMPv2-SMI::mib-2.47.1.1.1.1.7.57 = STRING: Cisco 7304 AC Power Supply 2

Searching www.mibdepot.com, www.cisco.com and google was without luck.

Here is an output from one of our Cisco 6500 Routers:

PowerSupply-1Fan

OK  06-23-2010 08:41:22 967d 20h 5m 0s  1/3 Fan Power 
Supply 2 Fan: OK

PowerSupply-1State

OK  06-23-2010 08:41:59 769d 7h 43m 9s  1/3 PowerSupply 
Power Supply 
1, WS-CAC-3000W: OK

PowerSupply-2Fan

OK  06-23-2010 08:42:34 967d 19h 21m 19s1/3 Fan 
Chassis Fan Tray 
1: OK

PowerSupply-2State

OK  06-23-2010 08:43:10 967d 19h 21m 10s1/3 
PowerSupply Power 
Supply 2, WS-CAC-3000W: OK

TemperatureState

OK  06-23-2010 08:43:46 61d 11h 53m 2s  1/3 Temperature 
(degrees 
Celsius) OK - 34

Any hints are welcome ;-)

many thanks
Richard

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
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

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
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 Cisco 7304

2010-06-23 Thread Richard Gliebe
On 6/23/10 9:48 AM Ortner, Gerald wrote:
 Hi,
 Have a look at https://support.ipmonitor.com/mibs/CISCO-ENVMON-MIB/tree.aspx
 For Cisco 3701 temperature:
 SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.1 = STRING: Thermal Sensor 1
 SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.2 = STRING: Thermal Sensor 2
 SNMPv2-SMI::enterprises.9.9.13.1.3.1.3.1 = Gauge32: 20
 SNMPv2-SMI::enterprises.9.9.13.1.3.1.3.2 = Gauge32: 23
 Gerald

this mibs doesn't match with cisco 7304

temperature:

# snmpget -v1 -ccommunity cisco 7304 Router 1.3.6.1.4.1.9.9.13.1.3.1.6
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: SNMPv2-SMI::enterprises.9.9.13.1.3.1.6

... also our mibs

thats my problem

greets from vlbg ;-)

thanks
Richard

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
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 checks are broken post update to nagios-plugins-snmp-1.4.14-1.el5 from nagios-plugins-snmp-1.4.13-11.el5

2010-04-22 Thread Wade Peacock
After updating our nagios-plugins via yum yesterday we have an issue with our 
service checks that rely on 
check_snmp

Here is are some samples:

1)

./check_snmp ups-shop -C public1 -o mib-2.33.1.2.4.0 -w 51:75 -c 25:50 -v

/usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 [authpriv] ups-shop:161 mib-2.33.1.2.4.0
SNMPv2-SMI::mib-2.33.1.2.4.0 = INTEGER: 100
SNMP CRITICAL - *100* | SNMPv2-SMI::mib-2.33.1.2.4.0=100

An OK is expected.

2)


/usr/lib/nagios/plugins/check_snmp -H bw1.in.sunwave.net -C public1 -o 
transmission.127.1.1.4.1.5.121 -w 17:18 
-c 0:16 -v

/usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 [authpriv] bw1.in.sunwave.net:161 
transmission.127.1.1.4.1.5.121
DOCS-IF-MIB::docsIfSigQSignalNoise.121 = INTEGER: 28.8 dB
SNMP CRITICAL - *29* | DOCS-IF-MIB::docsIfSigQSignalNoise.121=29

Once again an OK is expected.


Current  version is  nagios-plugins-snmp-1.4.14-1.el5
Previous version was nagios-plugins-snmp-1.4.13-11.el5

Net-snmp remained unchanged. Current version net-snmp-5.3.2.2-7.el5_4.2

I have tried tweaking the ranges to no avail.

Two more test samples:

No Critical range

/usr/lib/nagios/plugins/check_snmp -H bw1.in.sunwave.net -C public1 -o 
transmission.127.1.1.4.1.5.121 -w 17:18  -v

/usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 [authpriv] bw1.in.sunwave.net:161 
transmission.127.1.1.4.1.5.121
DOCS-IF-MIB::docsIfSigQSignalNoise.121 = INTEGER: 28.8 dB
SNMP WARNING - *29* | DOCS-IF-MIB::docsIfSigQSignalNoise.121=29

No Critical or Warning Range

/usr/lib/nagios/plugins/check_snmp -H bw1.in.sunwave.net -C public1 -o 
transmission.127.1.1.4.1.5.121   -v

/usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 [authpriv] bw1.in.sunwave.net:161 
transmission.127.1.1.4.1.5.121
DOCS-IF-MIB::docsIfSigQSignalNoise.121 = INTEGER: 28.8 dB
SNMP OK - 28.8 dB |


Any thoughts?

-- 
Wade Peacock
Network Administrator

Sun Country Cablevision Ltd
Sunwave Internet Department
Tel: (250) 832-9711 or (250) 546-9667
Web: http://www.sunwave.net
Email: wade.peac...@sunwave.net
Support Email: supp...@sunwave.net

--
___
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 checks are broken post update to nagios-plugins-snmp-1.4.14-1.el5 from nagios-plugins-snmp-1.4.13-11.el5

2010-04-22 Thread Joseph L. Casale
/usr/lib/nagios/plugins/check_snmp -H bw1.in.sunwave.net -C public1 -o 
transmission.127.1.1.4.1.5.121 -w 17:18  -v
SNMP WARNING - *29* | DOCS-IF-MIB::docsIfSigQSignalNoise.121=29

So it's working, it's out of the range you specified.
http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT

Any thoughts?

Check your warning and critical spec's, the tolerated syntax was changed.

--
___
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 Not Compiling

2010-04-22 Thread Robert Wolfe
Hi all!  I am trying to get the check_snmp code to compile, but for some reason 
it does not want to compile when I go to build the modules from the 
Nagios-plugins tarball.  Running CentOS 5.4 64 bit, latest Nagios release.

.
.
.
.
.
.
.
.
*** Message Virus Free.  Email scanned by I-FILTER ***
Corporate Anti-Spam and Anti-Virus email service by www.I-EVOLVE.com
.





--
___
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 checks are broken post update to nagios-plugins-snmp-1.4.14-1.el5 from nagios-plugins-snmp-1.4.13-11.el5

2010-04-22 Thread Wade Peacock
On 04/22/2010 10:23 AM, Joseph L. Casale wrote:
 /usr/lib/nagios/plugins/check_snmp -H bw1.in.sunwave.net -C public1 -o 
 transmission.127.1.1.4.1.5.121 -w 17:18  -v
 SNMP WARNING - *29* | DOCS-IF-MIB::docsIfSigQSignalNoise.121=29

 So it's working, it's out of the range you specified.
 http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT

Awesome resource. It was what I need.

Thanks.

Wade Peacock
Network Administrator

Sun Country Cablevision Ltd
Sunwave Internet Department
Tel: (250) 832-9711 or (250) 546-9667
Web: http://www.sunwave.net
Email: wade.peac...@sunwave.net
Support Email: supp...@sunwave.net




--
___
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 Not Compiling

2010-04-22 Thread Joseph L. Casale
Hi all!  I am trying to get the check_snmp code to compile

So why not use the rpm from rpmforge which you can enable for yum
and make life easy:)

--
___
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 Not Compiling

2010-04-22 Thread Marcel
make sure you have:

yum install net-snmp net-snmp-devel net-snmp-libs perl-SNMP



On Thu, Apr 22, 2010 at 2:30 PM, Robert Wolfe rwo...@i-evolve.com wrote:

 Hi all!  I am trying to get the check_snmp code to compile, but for some
 reason it does not want to compile when I go to build the modules from the
 Nagios-plugins tarball.  Running CentOS 5.4 64 bit, latest Nagios release.

 .
 .
 .
 .
 .
 .
 .
 .
 *** Message Virus Free.  Email scanned by I-FILTER ***
 Corporate Anti-Spam and Anti-Virus email service by www.I-EVOLVE.com
 .






 --
 ___
 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 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 Not Compiling

2010-04-22 Thread Robert Wolfe
Thanks!  Was missing all of these.  Ran this command and everything is set now! 
 Thanks again!

From: Marcel [mailto:mits...@gmail.com]
Sent: Thursday, April 22, 2010 2:15 PM
To: Nagios Users List
Subject: Re: [Nagios-users] check_snmp Not Compiling

make sure you have:

yum install net-snmp net-snmp-devel net-snmp-libs perl-SNMP


On Thu, Apr 22, 2010 at 2:30 PM, Robert Wolfe 
rwo...@i-evolve.commailto:rwo...@i-evolve.com wrote:
Hi all!  I am trying to get the check_snmp code to compile, but for some reason 
it does not want to compile when I go to build the modules from the 
Nagios-plugins tarball.  Running CentOS 5.4 64 bit, latest Nagios release.

.
.
.
.
.
.
.
.
*** Message Virus Free.  Email scanned by I-FILTER ***
Corporate Anti-Spam and Anti-Virus email service by 
www.I-EVOLVE.comhttp://www.I-EVOLVE.com
.





--
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.netmailto: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 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 Not Compiling

2010-04-22 Thread Marcel
glad to be of any help

On Thu, Apr 22, 2010 at 4:39 PM, Robert Wolfe rwo...@i-evolve.com wrote:

  Thanks!  Was missing all of these.  Ran this command and everything is
 set now!  Thanks again!



 *From:* Marcel [mailto:mits...@gmail.com]
 *Sent:* Thursday, April 22, 2010 2:15 PM
 *To:* Nagios Users List
 *Subject:* Re: [Nagios-users] check_snmp Not Compiling



 make sure you have:

 yum install net-snmp net-snmp-devel net-snmp-libs perl-SNMP


  On Thu, Apr 22, 2010 at 2:30 PM, Robert Wolfe rwo...@i-evolve.com
 wrote:

 Hi all!  I am trying to get the check_snmp code to compile, but for some
 reason it does not want to compile when I go to build the modules from the
 Nagios-plugins tarball.  Running CentOS 5.4 64 bit, latest Nagios release.

 .
 .
 .
 .
 .
 .
 .
 .
 *** Message Virus Free.  Email scanned by I-FILTER ***
 Corporate Anti-Spam and Anti-Virus email service by www.I-EVOLVE.com
 .






 --
 ___
 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 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 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 does not provide performance data ??

2010-03-30 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 29/03/10 07:26 AM, Jatin Davey wrote:
 Then it should be a bug right ? Please let me know if i can file it.
 
 Thanks
 Jatin

No need to open a bug. This was broken by this bug #1867716
(be144b67/tr...@2021) so I will reopen it, Feel free to go there and
click on monitor to receive further updates, or ask for a patch there
if you need one.

Thanks for reporting this,

- --
Thomas
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFLsqRZ6dZ+Kt5BchYRAku2AJwNw/eNypaKXcDBwU+b0OMqHnyLXgCfeoh9
nxyTcbXdiroYHM/Pbz3/U6w=
=1Oh9
-END PGP SIGNATURE-

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 does not provide performance data ??

2010-03-30 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 29/03/10 07:23 AM, Michael Schwartzkopff wrote:
 Am Montag, 29. März 2010 13:17:35 schrieb Jatin Davey:
 Hi

 I use the HOST-RESOURCES-MIB to get the status of the system and its
 various parameters. There is one such MIB parameter that provides memory
 used by a specific process on a linux box. It is : hrSWRunPerfMem ,
 When i execute this command using the check_snmp plugin it does not
 provide any performance data after the '|' symbol.

 The output is as below :

 [r...@pc-fedora-1 libexec]# ./check_snmp -H x.x.x.x -o hrSWRunPerfMem.x
 SNMP OK - 1652 KBytes |

 Is it a bug on the check_snmp plugin ?
 Please let me know if i am missing something.

 Thanks
 Jatin

 ---
 --- Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 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
 
 I don't know which version you are using. My output is:
 ./check_snmp -H 192.168.xxx.4 -C xxx -o hrSWRunPerfMem.2
 
 SNMP OK - 0 KBytes | HOST-RESOURCES-MIB::hrSWRunPerfMem.2=0 KBytes  

Actually I said the behaviour was broken by another fix but actually
this output is broken in itself. The 2nd part isn't a valid perfdata
string and this is what the fix was for, although the shown example was
much more obvious.

I just committed a fix btw.

- --
Thomas
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFLsrXM6dZ+Kt5BchYRAlbQAJ4io+kvxbCmb8c+E0MZ/BBpUL00WwCfSrDN
2lbXWMj4bhhydpkqKqdfYIU=
=7yFc
-END PGP SIGNATURE-

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 does not provide performance data ??

2010-03-29 Thread Michael Schwartzkopff
Am Montag, 29. März 2010 13:17:35 schrieb Jatin Davey:
 Hi

 I use the HOST-RESOURCES-MIB to get the status of the system and its
 various parameters. There is one such MIB parameter that provides memory
 used by a specific process on a linux box. It is : hrSWRunPerfMem ,
 When i execute this command using the check_snmp plugin it does not
 provide any performance data after the '|' symbol.

 The output is as below :

 [r...@pc-fedora-1 libexec]# ./check_snmp -H x.x.x.x -o hrSWRunPerfMem.x
 SNMP OK - 1652 KBytes |

 Is it a bug on the check_snmp plugin ?
 Please let me know if i am missing something.

 Thanks
 Jatin

 ---
--- Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 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

Well, it does. Perhaps it is not quite compliant to the plugin writing guide.


-- 
Dr. Michael Schwartzkopff
MultiNET Services GmbH
Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany
Tel: +49 - 89 - 45 69 11 0
Fax: +49 - 89 - 45 69 11 21
mob: +49 - 174 - 343 28 75

mail: mi...@multinet.de
web: www.multinet.de

Sitz der Gesellschaft: 85630 Grasbrunn
Registergericht: Amtsgericht München HRB 114375
Geschäftsführer: Günter Jurgeneit, Hubert Martens

---

PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
Skype: misch42

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 does not provide performance data ??

2010-03-29 Thread Michael Schwartzkopff
Am Montag, 29. März 2010 13:17:35 schrieb Jatin Davey:
 Hi

 I use the HOST-RESOURCES-MIB to get the status of the system and its
 various parameters. There is one such MIB parameter that provides memory
 used by a specific process on a linux box. It is : hrSWRunPerfMem ,
 When i execute this command using the check_snmp plugin it does not
 provide any performance data after the '|' symbol.

 The output is as below :

 [r...@pc-fedora-1 libexec]# ./check_snmp -H x.x.x.x -o hrSWRunPerfMem.x
 SNMP OK - 1652 KBytes |

 Is it a bug on the check_snmp plugin ?
 Please let me know if i am missing something.

 Thanks
 Jatin

 ---
--- Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 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

I don't know which version you are using. My output is:
./check_snmp -H 192.168.xxx.4 -C xxx -o hrSWRunPerfMem.2

SNMP OK - 0 KBytes | HOST-RESOURCES-MIB::hrSWRunPerfMem.2=0 KBytes  

-- 
Dr. Michael Schwartzkopff
MultiNET Services GmbH
Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany
Tel: +49 - 89 - 45 69 11 0
Fax: +49 - 89 - 45 69 11 21
mob: +49 - 174 - 343 28 75

mail: mi...@multinet.de
web: www.multinet.de

Sitz der Gesellschaft: 85630 Grasbrunn
Registergericht: Amtsgericht München HRB 114375
Geschäftsführer: Günter Jurgeneit, Hubert Martens

---

PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
Skype: misch42

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 does not provide performance data ??

2010-03-29 Thread Jatin Davey
Then it should be a bug right ? Please let me know if i can file it.

Thanks
Jatin

On 3/29/2010 4:49 PM, Michael Schwartzkopff wrote:
 Am Montag, 29. März 2010 13:17:35 schrieb Jatin Davey:

 Hi

 I use the HOST-RESOURCES-MIB to get the status of the system and its
 various parameters. There is one such MIB parameter that provides memory
 used by a specific process on a linux box. It is : hrSWRunPerfMem ,
 When i execute this command using the check_snmp plugin it does not
 provide any performance data after the '|' symbol.

 The output is as below :

 [r...@pc-fedora-1 libexec]# ./check_snmp -H x.x.x.x -o hrSWRunPerfMem.x
 SNMP OK - 1652 KBytes |

 Is it a bug on the check_snmp plugin ?
 Please let me know if i am missing something.

 Thanks
 Jatin

 ---
 --- Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 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
  
 Well, it does. Perhaps it is not quite compliant to the plugin writing guide.




--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 does not provide performance data ??

2010-03-29 Thread Jatin Davey
Ok , here go the version of the plugin used taken from the help page of 
the plugin:

[r...@pc-fedora-1 libexec]# ./check_snmp --help
check_snmp v1.4.14 (nagios-plugins 1.4.14)
Copyright (c) 1999-2007 Nagios Plugin Development Team
nagiosplug-de...@lists.sourceforge.net

Check status of remote machines and obtain system information via SNMP

Thanks
Jatin

On 3/29/2010 4:53 PM, Michael Schwartzkopff wrote:
 Am Montag, 29. März 2010 13:17:35 schrieb Jatin Davey:

 Hi

 I use the HOST-RESOURCES-MIB to get the status of the system and its
 various parameters. There is one such MIB parameter that provides memory
 used by a specific process on a linux box. It is : hrSWRunPerfMem ,
 When i execute this command using the check_snmp plugin it does not
 provide any performance data after the '|' symbol.

 The output is as below :

 [r...@pc-fedora-1 libexec]# ./check_snmp -H x.x.x.x -o hrSWRunPerfMem.x
 SNMP OK - 1652 KBytes |

 Is it a bug on the check_snmp plugin ?
 Please let me know if i am missing something.

 Thanks
 Jatin

 ---
 --- Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 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
  
 I don't know which version you are using. My output is:
 ./check_snmp -H 192.168.xxx.4 -C xxx -o hrSWRunPerfMem.2

 SNMP OK - 0 KBytes | HOST-RESOURCES-MIB::hrSWRunPerfMem.2=0 KBytes



--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 does not provide performance data ??

2010-03-29 Thread Jatin Davey
Well , when i use the complete OID path i get the performance data , Say 
instead of using

hrSWRunPerfMem if use 1.3.6.1.2.1.25.5.1.1.2

Then it works fine and the performance data is collected for the specific 
process of interest.

I dont know why it does not do so if the OID name is not resolved ?
Anyone knows please let me know.

Thanks
Jatin

On 3/29/2010 5:15 PM, Jatin Davey wrote:
 Ok , here go the version of the plugin used taken from the help page of
 the plugin:

 [r...@pc-fedora-1 libexec]# ./check_snmp --help
 check_snmp v1.4.14 (nagios-plugins 1.4.14)
 Copyright (c) 1999-2007 Nagios Plugin Development Team
 nagiosplug-de...@lists.sourceforge.net

 Check status of remote machines and obtain system information via SNMP

 Thanks
 Jatin

 On 3/29/2010 4:53 PM, Michael Schwartzkopff wrote:

 Am Montag, 29. März 2010 13:17:35 schrieb Jatin Davey:

  
 Hi

 I use the HOST-RESOURCES-MIB to get the status of the system and its
 various parameters. There is one such MIB parameter that provides memory
 used by a specific process on a linux box. It is : hrSWRunPerfMem ,
 When i execute this command using the check_snmp plugin it does not
 provide any performance data after the '|' symbol.

 The output is as below :

 [r...@pc-fedora-1 libexec]# ./check_snmp -H x.x.x.x -o hrSWRunPerfMem.x
 SNMP OK - 1652 KBytes |

 Is it a bug on the check_snmp plugin ?
 Please let me know if i am missing something.

 Thanks
 Jatin

 ---
 --- Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 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


 I don't know which version you are using. My output is:
 ./check_snmp -H 192.168.xxx.4 -C xxx -o hrSWRunPerfMem.2

 SNMP OK - 0 KBytes | HOST-RESOURCES-MIB::hrSWRunPerfMem.2=0 KBytes


  
 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 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



--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 does not provide performance data ??

2010-03-29 Thread Michael Schwartzkopff
Am Montag, 29. März 2010 15:01:50 schrieb Jatin Davey:
 Well , when i use the complete OID path i get the performance data , Say
 instead of using

 hrSWRunPerfMem if use 1.3.6.1.2.1.25.5.1.1.2

 Then it works fine and the performance data is collected for the specific
 process of interest.

 I dont know why it does not do so if the OID name is not resolved ?
 Anyone knows please let me know.

 Thanks
 Jatin

 On 3/29/2010 5:15 PM, Jatin Davey wrote:
  Ok , here go the version of the plugin used taken from the help page of
  the plugin:
 
  [r...@pc-fedora-1 libexec]# ./check_snmp --help
  check_snmp v1.4.14 (nagios-plugins 1.4.14)
  Copyright (c) 1999-2007 Nagios Plugin Development Team
  nagiosplug-de...@lists.sourceforge.net
 
  Check status of remote machines and obtain system information via SNMP
 
  Thanks
  Jatin
 
  On 3/29/2010 4:53 PM, Michael Schwartzkopff wrote:
  Am Montag, 29. März 2010 13:17:35 schrieb Jatin Davey:
  Hi
 
  I use the HOST-RESOURCES-MIB to get the status of the system and its
  various parameters. There is one such MIB parameter that provides
  memory used by a specific process on a linux box. It is :
  hrSWRunPerfMem , When i execute this command using the check_snmp
  plugin it does not provide any performance data after the '|' symbol.
 
  The output is as below :
 
  [r...@pc-fedora-1 libexec]# ./check_snmp -H x.x.x.x -o
  hrSWRunPerfMem.x SNMP OK - 1652 KBytes |
 
  Is it a bug on the check_snmp plugin ?
  Please let me know if i am missing something.
 
  Thanks
  Jatin
 
  ---
  --- Download Intel#174; Parallel Studio Eval
  Try the new software tools for yourself. Speed compiling, find bugs
  proactively, and fine-tune applications for parallel performance.
  See why Intel Parallel Studio got high marks during beta.
  http://p.sf.net/sfu/intel-sw-dev
  ___
  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
 
  I don't know which version you are using. My output is:
  ./check_snmp -H 192.168.xxx.4 -C xxx -o hrSWRunPerfMem.2
 
  SNMP OK - 0 KBytes | HOST-RESOURCES-MIB::hrSWRunPerfMem.2=0 KBytes
 
  -
 - Download Intel#174; Parallel Studio Eval
  Try the new software tools for yourself. Speed compiling, find bugs
  proactively, and fine-tune applications for parallel performance.
  See why Intel Parallel Studio got high marks during beta.
  http://p.sf.net/sfu/intel-sw-dev
  ___
  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

 ---
--- Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 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

Perhaps your snmp command does not read in that MIB. try the -m ALL option.
Greetings,
-- 
Dr. Michael Schwartzkopff
MultiNET Services GmbH
Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany
Tel: +49 - 89 - 45 69 11 0
Fax: +49 - 89 - 45 69 11 21
mob: +49 - 174 - 343 28 75

mail: mi...@multinet.de
web: www.multinet.de

Sitz der Gesellschaft: 85630 Grasbrunn
Registergericht: Amtsgericht München HRB 114375
Geschäftsführer: Günter Jurgeneit, Hubert Martens

---

PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
Skype: misch42

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 

[Nagios-users] check_snmp and quoted oid's

2010-03-23 Thread Joseph L. Casale
Seems this is an old issue fixed in some distros and shod full of
creative quoting suggestions but I can't get it to work.

Anyone know how to pass an oid such as:
REDHAT-CLUSTER-MIB::rhcServiceRunningOnNode.service
to the check_snmp plugin?

Thanks!
jlc

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 and quoted oid's

2010-03-23 Thread Gius, Mark
In my Nagios command definitions I always escape quote anything like this.  IE,

check_snmp options \'OIDb\'

-Gius

 -Original Message-
 From: Joseph L. Casale [mailto:jcas...@activenetwerx.com]
 Sent: Tuesday, March 23, 2010 3:36 PM
 To: 'nagios-users@lists.sourceforge.net'
 Subject: [Nagios-users] check_snmp and quoted oid's
 
 Seems this is an old issue fixed in some distros and shod full of
 creative quoting suggestions but I can't get it to work.
 
 Anyone know how to pass an oid such as:
 REDHAT-CLUSTER-MIB::rhcServiceRunningOnNode.service
 to the check_snmp plugin?
 
 Thanks!
 jlc
 
 ---
 ---
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 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

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 and quoted oid's

2010-03-23 Thread Joseph L. Casale
In my Nagios command definitions I always escape quote anything like this.  IE,

check_snmp options \'OIDb\'

Strange, I am using nagios-plugins-1.4.13-1.el5.rf and this syntax causes
nagios 3.2.0 to still error out?

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 plugin not visible

2010-03-08 Thread Kyle O'Donnell
What were you configure options?  Do you have net-snmp(dev libs too)
installed?  


On Tue, 9 Mar 2010 01:05:46 +0530, Ambati Srinivas am.sr...@gmail.com
wrote:
 Hi,
 
 I very recently installed nagios Nagios-3.2.0 and
Nagios-plugins-1.4.14on
 fedora 12. All went however I am not able to execute nor see check_snmp
 under /usr/local/nagios/libexec/
 
 For your reference:
 [r...@nagios01 plugins]# cd /usr/local/nagios/libexec/
 [r...@nagios01 libexec]# ls
 check_apt   check_file_age  check_log   check_oracle  
 check_tcp
 check_breezecheck_flexlmcheck_mailq check_overcr
 check_time
 check_by_sshcheck_ftp   check_mrtg  check_ping
 check_udp
 check_clamd check_http  check_mrtgtraf  check_pop 
 check_ups
 check_cluster   check_icmp  check_nagioscheck_procs
 check_users
 check_dhcp  check_ide_smart check_nntp  check_real
 check_wave
 check_dig   check_ifoperstatus  check_ntcheck_rpc 
negate
 check_disk  check_ifstatus  check_ntp   check_sensors 
urlize
 check_disk_smb  check_imap  check_ntp_peer  check_smtp
utils.pm
 check_dns   check_ircd  check_ntp_time  check_ssh 
utils.sh
 check_dummy check_load  check_nwstatcheck_swap
 [r...@nagios01 libexec]#
 
 
 
 While I can see files in /nagios-plugins-1.4.14/plugins (after untar)
 check_snmp
 check_snmp.c
 check_snmp.o
 For your refernce:
 [r...@nagios01 Downloads]# ls
 nagios-3.2.0 nagios-plugins-1.4.14
 nagios-3.2.0.tar.gz  nagios-plugins-1.4.14.tar.gz
 [r...@nagios01 Downloads]# pwd
 /home//Downloads
 [r...@nagios01 Downloads]# ls
 nagios-3.2.0 nagios-plugins-1.4.14
 nagios-3.2.0.tar.gz  nagios-plugins-1.4.14.tar.gz
 [r...@nagios01 Downloads]#
 [r...@nagios01 libexec]# cd
 /home//Downloads/nagios-plugins-1.4.14/plugins
 [r...@nagios01 plugins]# pwd
 /home//Downloads/nagios-plugins-1.4.14/plugins
 [r...@nagios01 plugins]# ls
 check_apt  check_ide_smart.ocheck_overcrcheck_udp
 check_apt.ccheck_imap   check_overcr.c  check_ups
 check_apt.ocheck_ldap.c check_overcr.o  check_ups.c
 check_by_ssh   check_load   check_pgsql.c   check_ups.o
 check_by_ssh.c check_load.c check_ping  check_users
 check_by_ssh.o check_load.o check_ping.ccheck_users.c
 check_clamdcheck_mrtg   check_ping.ocheck_users.o
 check_cluster  check_mrtg.c check_pop   common.h
 check_cluster.ccheck_mrtg.o check_procs Makefile
 check_cluster.ocheck_mrtgtraf   check_procs.c   Makefile.am
 check_dig  check_mrtgtraf.c check_procs.o   Makefile.in
 check_dig.ccheck_mrtgtraf.o check_radius.c  negate
 check_dig.ocheck_mysql.ccheck_real  negate.c
 check_disk check_mysql_query.c  check_real.cnegate.o
 check_disk.c   check_nagios check_real.onetutils.c
 check_disk.o   check_nagios.c   check_smtp  netutils.h
 check_dns  check_nagios.o   check_smtp.cnetutils.o
 check_dns.ccheck_nntp   check_smtp.opopen.c
 check_dns.ocheck_nt check_snmp  popen.h
 check_dummycheck_nt.c   check_snmp.cpopen.o
 check_dummy.c  check_nt.o   check_snmp.oruncmd.c
 check_dummy.o  check_ntpcheck_ssh   runcmd.h
 check_fping.c  check_ntp.c  check_ssh.c runcmd.o
 check_ftp  check_ntp.o  check_ssh.o sslutils.c
 check_game.c   check_ntp_peer   check_swap  sslutils.o
 check_hpjd check_ntp_peer.c check_swap.ct
 check_hpjd.c   check_ntp_peer.o check_swap.ourlize
 check_hpjd.o   check_ntp_time   check_tcp   urlize.c
 check_http check_ntp_time.c check_tcp.c urlize.o
 check_http.c   check_ntp_time.o check_tcp.o utils.c
 check_http.o   check_nwstat check_time  utils.h
 check_ide_smartcheck_nwstat.c   check_time.cutils.o
 check_ide_smart.c  check_nwstat.o   check_time.o
 [r...@nagios01 plugins]#
 
 Please advice,
 
 am

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 plugin not visible

2010-03-08 Thread Gary Every
if you don't have net-snmp/snmpd  installed on your system, it will not
compile the plugins - make sure that you have the commands, such as
snmpwalk, etc installed and re-compile

g.;


On Mon, Mar 8, 2010 at 12:35 PM, Ambati Srinivas am.sr...@gmail.com wrote:

 Hi,

 I very recently installed nagios Nagios-3.2.0 and Nagios-plugins-1.4.14on
 fedora 12. All went however I am not able to execute nor see check_snmp
 under /usr/local/nagios/libexec/

 For your reference:
 [r...@nagios01 plugins]# cd /usr/local/nagios/libexec/
 [r...@nagios01 libexec]# ls
 check_apt   check_file_age  check_log   check_oracle
 check_tcp
 check_breezecheck_flexlmcheck_mailq check_overcr
 check_time
 check_by_sshcheck_ftp   check_mrtg  check_ping
 check_udp
 check_clamd check_http  check_mrtgtraf  check_pop
 check_ups
 check_cluster   check_icmp  check_nagioscheck_procs
 check_users
 check_dhcp  check_ide_smart check_nntp  check_real
 check_wave
 check_dig   check_ifoperstatus  check_ntcheck_rpc  negate
 check_disk  check_ifstatus  check_ntp   check_sensors  urlize
 check_disk_smb  check_imap  check_ntp_peer  check_smtp
 utils.pm
 check_dns   check_ircd  check_ntp_time  check_ssh  utils.sh
 check_dummy check_load  check_nwstatcheck_swap
 [r...@nagios01 libexec]#



 While I can see files in /nagios-plugins-1.4.14/plugins (after untar)
 check_snmp
 check_snmp.c
 check_snmp.o
 For your refernce:
 [r...@nagios01 Downloads]# ls
 nagios-3.2.0 nagios-plugins-1.4.14
 nagios-3.2.0.tar.gz  nagios-plugins-1.4.14.tar.gz
 [r...@nagios01 Downloads]# pwd
 /home//Downloads
 [r...@nagios01 Downloads]# ls
 nagios-3.2.0 nagios-plugins-1.4.14
 nagios-3.2.0.tar.gz  nagios-plugins-1.4.14.tar.gz
 [r...@nagios01 Downloads]#
 [r...@nagios01 libexec]# cd
 /home//Downloads/nagios-plugins-1.4.14/plugins
 [r...@nagios01 plugins]# pwd
 /home//Downloads/nagios-plugins-1.4.14/plugins
 [r...@nagios01 plugins]# ls
 check_apt  check_ide_smart.ocheck_overcrcheck_udp
 check_apt.ccheck_imap   check_overcr.c  check_ups
 check_apt.ocheck_ldap.c check_overcr.o  check_ups.c
 check_by_ssh   check_load   check_pgsql.c   check_ups.o
 check_by_ssh.c check_load.c check_ping  check_users
 check_by_ssh.o check_load.o check_ping.ccheck_users.c
 check_clamdcheck_mrtg   check_ping.ocheck_users.o
 check_cluster  check_mrtg.c check_pop   common.h
 check_cluster.ccheck_mrtg.o check_procs Makefile
 check_cluster.ocheck_mrtgtraf   check_procs.c   Makefile.am
 check_dig  check_mrtgtraf.c check_procs.o   Makefile.in
 check_dig.ccheck_mrtgtraf.o check_radius.c  negate
 check_dig.ocheck_mysql.ccheck_real  negate.c
 check_disk check_mysql_query.c  check_real.cnegate.o
 check_disk.c   check_nagios check_real.onetutils.c
 check_disk.o   check_nagios.c   check_smtp  netutils.h
 check_dns  check_nagios.o   check_smtp.cnetutils.o
 check_dns.ccheck_nntp   check_smtp.opopen.c
 check_dns.ocheck_nt check_snmp  popen.h
 check_dummycheck_nt.c   check_snmp.cpopen.o
 check_dummy.c  check_nt.o   check_snmp.oruncmd.c
 check_dummy.o  check_ntpcheck_ssh   runcmd.h
 check_fping.c  check_ntp.c  check_ssh.c runcmd.o
 check_ftp  check_ntp.o  check_ssh.o sslutils.c
 check_game.c   check_ntp_peer   check_swap  sslutils.o
 check_hpjd check_ntp_peer.c check_swap.ct
 check_hpjd.c   check_ntp_peer.o check_swap.ourlize
 check_hpjd.o   check_ntp_time   check_tcp   urlize.c
 check_http check_ntp_time.c check_tcp.c urlize.o
 check_http.c   check_ntp_time.o check_tcp.o utils.c
 check_http.o   check_nwstat check_time  utils.h
 check_ide_smartcheck_nwstat.c   check_time.cutils.o
 check_ide_smart.c  check_nwstat.o   check_time.o
 [r...@nagios01 plugins]#

 Please advice,

 am


 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 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 plugin not visible

2010-03-08 Thread Ambati Srinivas
Hi,

I never expected this speed reply :-) Thanks much.

Yep Installed net-snmp-5.4.2.1-19.fc12.i686  and
net-snmp-utils-5.4.2.1-19.fc12.i686 on nagios core however I have not yet
enable snmp monitoring in file /usr/local/nagios/etc/nagios.cfg   does that
effect???

vi /usr/local/nagios/etc/nagios.cfg
# Definitions for monitoring a router/switch
#cfg_file=/usr/local/nagios/etc/objects/switch.cfg


Please advice further

AM




On Tue, Mar 9, 2010 at 1:16 AM, Kyle O'Donnell nag...@z3b.org wrote:

 What were you configure options?  Do you have net-snmp(dev libs too)
 installed?


 On Tue, 9 Mar 2010 01:05:46 +0530, Ambati Srinivas am.sr...@gmail.com
 wrote:
  Hi,
 
  I very recently installed nagios Nagios-3.2.0 and
 Nagios-plugins-1.4.14on
  fedora 12. All went however I am not able to execute nor see check_snmp
  under /usr/local/nagios/libexec/
 
  For your reference:
  [r...@nagios01 plugins]# cd /usr/local/nagios/libexec/
  [r...@nagios01 libexec]# ls
  check_apt   check_file_age  check_log   check_oracle
  check_tcp
  check_breezecheck_flexlmcheck_mailq check_overcr
  check_time
  check_by_sshcheck_ftp   check_mrtg  check_ping
  check_udp
  check_clamd check_http  check_mrtgtraf  check_pop
  check_ups
  check_cluster   check_icmp  check_nagioscheck_procs
  check_users
  check_dhcp  check_ide_smart check_nntp  check_real
  check_wave
  check_dig   check_ifoperstatus  check_ntcheck_rpc
 negate
  check_disk  check_ifstatus  check_ntp   check_sensors
 urlize
  check_disk_smb  check_imap  check_ntp_peer  check_smtp
 utils.pm
  check_dns   check_ircd  check_ntp_time  check_ssh
 utils.sh
  check_dummy check_load  check_nwstatcheck_swap
  [r...@nagios01 libexec]#
 
 
 
  While I can see files in /nagios-plugins-1.4.14/plugins (after untar)
  check_snmp
  check_snmp.c
  check_snmp.o
  For your refernce:
  [r...@nagios01 Downloads]# ls
  nagios-3.2.0 nagios-plugins-1.4.14
  nagios-3.2.0.tar.gz  nagios-plugins-1.4.14.tar.gz
  [r...@nagios01 Downloads]# pwd
  /home//Downloads
  [r...@nagios01 Downloads]# ls
  nagios-3.2.0 nagios-plugins-1.4.14
  nagios-3.2.0.tar.gz  nagios-plugins-1.4.14.tar.gz
  [r...@nagios01 Downloads]#
  [r...@nagios01 libexec]# cd
  /home//Downloads/nagios-plugins-1.4.14/plugins
  [r...@nagios01 plugins]# pwd
  /home//Downloads/nagios-plugins-1.4.14/plugins
  [r...@nagios01 plugins]# ls
  check_apt  check_ide_smart.ocheck_overcrcheck_udp
  check_apt.ccheck_imap   check_overcr.c  check_ups
  check_apt.ocheck_ldap.c check_overcr.o  check_ups.c
  check_by_ssh   check_load   check_pgsql.c   check_ups.o
  check_by_ssh.c check_load.c check_ping  check_users
  check_by_ssh.o check_load.o check_ping.ccheck_users.c
  check_clamdcheck_mrtg   check_ping.ocheck_users.o
  check_cluster  check_mrtg.c check_pop   common.h
  check_cluster.ccheck_mrtg.o check_procs Makefile
  check_cluster.ocheck_mrtgtraf   check_procs.c   Makefile.am
  check_dig  check_mrtgtraf.c check_procs.o   Makefile.in
  check_dig.ccheck_mrtgtraf.o check_radius.c  negate
  check_dig.ocheck_mysql.ccheck_real  negate.c
  check_disk check_mysql_query.c  check_real.cnegate.o
  check_disk.c   check_nagios check_real.onetutils.c
  check_disk.o   check_nagios.c   check_smtp  netutils.h
  check_dns  check_nagios.o   check_smtp.cnetutils.o
  check_dns.ccheck_nntp   check_smtp.opopen.c
  check_dns.ocheck_nt check_snmp  popen.h
  check_dummycheck_nt.c   check_snmp.cpopen.o
  check_dummy.c  check_nt.o   check_snmp.oruncmd.c
  check_dummy.o  check_ntpcheck_ssh   runcmd.h
  check_fping.c  check_ntp.c  check_ssh.c runcmd.o
  check_ftp  check_ntp.o  check_ssh.o sslutils.c
  check_game.c   check_ntp_peer   check_swap  sslutils.o
  check_hpjd check_ntp_peer.c check_swap.ct
  check_hpjd.c   check_ntp_peer.o check_swap.ourlize
  check_hpjd.o   check_ntp_time   check_tcp   urlize.c
  check_http check_ntp_time.c check_tcp.c urlize.o
  check_http.c   check_ntp_time.o check_tcp.o utils.c
  check_http.o   check_nwstat check_time  utils.h
  check_ide_smartcheck_nwstat.c   check_time.cutils.o
  check_ide_smart.c  check_nwstat.o   check_time.o
  [r...@nagios01 plugins]#
 
  Please advice,
 
  am

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, 

Re: [Nagios-users] check_snmp plugin not visible

2010-03-08 Thread Ambati Srinivas
I have installed net-snmp-5.4.2.1-19.fc12.i686  and
net-snmp-utils-5.4.2.1-19.fc12.i686 and restarted snmpd deamon and the
deamon is running on nagios core however I have not yet enable snmp
monitoring in file /usr/local/nagios/etc/nagios.cfg   does that effect???

vi /usr/local/nagios/etc/nagios.
cfg
# Definitions for monitoring a router/switch
#cfg_file=/usr/local/nagios/etc/objects/switch.cfg


I can run snmpwalk


AM



On Tue, Mar 9, 2010 at 1:17 AM, Gary Every gev...@gmail.com wrote:

 if you don't have net-snmp/snmpd  installed on your system, it will not
 compile the plugins - make sure that you have the commands, such as
 snmpwalk, etc installed and re-compile

 g.;


 On Mon, Mar 8, 2010 at 12:35 PM, Ambati Srinivas am.sr...@gmail.comwrote:

 Hi,

 I very recently installed nagios Nagios-3.2.0 and Nagios-plugins-1.4.14on
 fedora 12. All went however I am not able to execute nor see check_snmp
 under /usr/local/nagios/libexec/

 For your reference:
 [r...@nagios01 plugins]# cd /usr/local/nagios/libexec/
 [r...@nagios01 libexec]# ls
 check_apt   check_file_age  check_log   check_oracle
 check_tcp
 check_breezecheck_flexlmcheck_mailq check_overcr
 check_time
 check_by_sshcheck_ftp   check_mrtg  check_ping
 check_udp
 check_clamd check_http  check_mrtgtraf  check_pop
 check_ups
 check_cluster   check_icmp  check_nagioscheck_procs
 check_users
 check_dhcp  check_ide_smart check_nntp  check_real
 check_wave
 check_dig   check_ifoperstatus  check_ntcheck_rpc  negate
 check_disk  check_ifstatus  check_ntp   check_sensors  urlize
 check_disk_smb  check_imap  check_ntp_peer  check_smtp
 utils.pm
 check_dns   check_ircd  check_ntp_time  check_ssh
 utils.sh
 check_dummy check_load  check_nwstatcheck_swap
 [r...@nagios01 libexec]#



 While I can see files in /nagios-plugins-1.4.14/plugins (after untar)
 check_snmp
 check_snmp.c
 check_snmp.o
 For your refernce:
 [r...@nagios01 Downloads]# ls
 nagios-3.2.0 nagios-plugins-1.4.14
 nagios-3.2.0.tar.gz  nagios-plugins-1.4.14.tar.gz
 [r...@nagios01 Downloads]# pwd
 /home//Downloads
 [r...@nagios01 Downloads]# ls
 nagios-3.2.0 nagios-plugins-1.4.14
 nagios-3.2.0.tar.gz  nagios-plugins-1.4.14.tar.gz
 [r...@nagios01 Downloads]#
 [r...@nagios01 libexec]# cd
 /home//Downloads/nagios-plugins-1.4.14/plugins
 [r...@nagios01 plugins]# pwd
 /home//Downloads/nagios-plugins-1.4.14/plugins
 [r...@nagios01 plugins]# ls
 check_apt  check_ide_smart.ocheck_overcrcheck_udp
 check_apt.ccheck_imap   check_overcr.c  check_ups
 check_apt.ocheck_ldap.c check_overcr.o  check_ups.c
 check_by_ssh   check_load   check_pgsql.c   check_ups.o
 check_by_ssh.c check_load.c check_ping  check_users
 check_by_ssh.o check_load.o check_ping.ccheck_users.c
 check_clamdcheck_mrtg   check_ping.ocheck_users.o
 check_cluster  check_mrtg.c check_pop   common.h
 check_cluster.ccheck_mrtg.o check_procs Makefile
 check_cluster.ocheck_mrtgtraf   check_procs.c   Makefile.am
 check_dig  check_mrtgtraf.c check_procs.o   Makefile.in
 check_dig.ccheck_mrtgtraf.o check_radius.c  negate
 check_dig.ocheck_mysql.ccheck_real  negate.c
 check_disk check_mysql_query.c  check_real.cnegate.o
 check_disk.c   check_nagios check_real.onetutils.c
 check_disk.o   check_nagios.c   check_smtp  netutils.h
 check_dns  check_nagios.o   check_smtp.cnetutils.o
 check_dns.ccheck_nntp   check_smtp.opopen.c
 check_dns.ocheck_nt check_snmp  popen.h
 check_dummycheck_nt.c   check_snmp.cpopen.o
 check_dummy.c  check_nt.o   check_snmp.oruncmd.c
 check_dummy.o  check_ntpcheck_ssh   runcmd.h
 check_fping.c  check_ntp.c  check_ssh.c runcmd.o
 check_ftp  check_ntp.o  check_ssh.o sslutils.c
 check_game.c   check_ntp_peer   check_swap  sslutils.o
 check_hpjd check_ntp_peer.c check_swap.ct
 check_hpjd.c   check_ntp_peer.o check_swap.ourlize
 check_hpjd.o   check_ntp_time   check_tcp   urlize.c
 check_http check_ntp_time.c check_tcp.c urlize.o
 check_http.c   check_ntp_time.o check_tcp.o utils.c
 check_http.o   check_nwstat check_time  utils.h
 check_ide_smartcheck_nwstat.c   check_time.cutils.o
 check_ide_smart.c  check_nwstat.o   check_time.o
 [r...@nagios01 plugins]#

 Please advice,

 am


 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find 

Re: [Nagios-users] check_snmp plugin not visible

2010-03-08 Thread Kyle O'Donnell
yum install net-snmp-devel

add --with-snmp to your plugins compile

On Tue, 9 Mar 2010 01:26:37 +0530, Ambati Srinivas am.sr...@gmail.com
wrote:
 Hi,
 
 I never expected this speed reply :-) Thanks much.
 
 Yep Installed net-snmp-5.4.2.1-19.fc12.i686  and
 net-snmp-utils-5.4.2.1-19.fc12.i686 on nagios core however I have not
yet
 enable snmp monitoring in file /usr/local/nagios/etc/nagios.cfg   does
that
 effect???
 
 vi /usr/local/nagios/etc/nagios.cfg
 # Definitions for monitoring a router/switch
 #cfg_file=/usr/local/nagios/etc/objects/switch.cfg
 
 
 Please advice further
 
 AM
 
 
 
 
 On Tue, Mar 9, 2010 at 1:16 AM, Kyle O'Donnell nag...@z3b.org wrote:
 
 What were you configure options?  Do you have net-snmp(dev libs too)
 installed?


 On Tue, 9 Mar 2010 01:05:46 +0530, Ambati Srinivas am.sr...@gmail.com
 wrote:
  Hi,
 
  I very recently installed nagios Nagios-3.2.0 and
 Nagios-plugins-1.4.14on
  fedora 12. All went however I am not able to execute nor see
check_snmp
  under /usr/local/nagios/libexec/
 
  For your reference:
  [r...@nagios01 plugins]# cd /usr/local/nagios/libexec/
  [r...@nagios01 libexec]# ls
  check_apt   check_file_age  check_log   check_oracle
  check_tcp
  check_breezecheck_flexlmcheck_mailq check_overcr
  check_time
  check_by_sshcheck_ftp   check_mrtg  check_ping
  check_udp
  check_clamd check_http  check_mrtgtraf  check_pop
  check_ups
  check_cluster   check_icmp  check_nagioscheck_procs
  check_users
  check_dhcp  check_ide_smart check_nntp  check_real
  check_wave
  check_dig   check_ifoperstatus  check_ntcheck_rpc
 negate
  check_disk  check_ifstatus  check_ntp   check_sensors
 urlize
  check_disk_smb  check_imap  check_ntp_peer  check_smtp
 utils.pm
  check_dns   check_ircd  check_ntp_time  check_ssh
 utils.sh
  check_dummy check_load  check_nwstatcheck_swap
  [r...@nagios01 libexec]#
 
 
 
  While I can see files in /nagios-plugins-1.4.14/plugins (after untar)
  check_snmp
  check_snmp.c
  check_snmp.o
  For your refernce:
  [r...@nagios01 Downloads]# ls
  nagios-3.2.0 nagios-plugins-1.4.14
  nagios-3.2.0.tar.gz  nagios-plugins-1.4.14.tar.gz
  [r...@nagios01 Downloads]# pwd
  /home//Downloads
  [r...@nagios01 Downloads]# ls
  nagios-3.2.0 nagios-plugins-1.4.14
  nagios-3.2.0.tar.gz  nagios-plugins-1.4.14.tar.gz
  [r...@nagios01 Downloads]#
  [r...@nagios01 libexec]# cd
  /home//Downloads/nagios-plugins-1.4.14/plugins
  [r...@nagios01 plugins]# pwd
  /home//Downloads/nagios-plugins-1.4.14/plugins
  [r...@nagios01 plugins]# ls
  check_apt  check_ide_smart.ocheck_overcrcheck_udp
  check_apt.ccheck_imap   check_overcr.c  check_ups
  check_apt.ocheck_ldap.c check_overcr.o  check_ups.c
  check_by_ssh   check_load   check_pgsql.c   check_ups.o
  check_by_ssh.c check_load.c check_ping  check_users
  check_by_ssh.o check_load.o check_ping.ccheck_users.c
  check_clamdcheck_mrtg   check_ping.ocheck_users.o
  check_cluster  check_mrtg.c check_pop   common.h
  check_cluster.ccheck_mrtg.o check_procs Makefile
  check_cluster.ocheck_mrtgtraf   check_procs.c   Makefile.am
  check_dig  check_mrtgtraf.c check_procs.o   Makefile.in
  check_dig.ccheck_mrtgtraf.o check_radius.c  negate
  check_dig.ocheck_mysql.ccheck_real  negate.c
  check_disk check_mysql_query.c  check_real.cnegate.o
  check_disk.c   check_nagios check_real.onetutils.c
  check_disk.o   check_nagios.c   check_smtp  netutils.h
  check_dns  check_nagios.o   check_smtp.cnetutils.o
  check_dns.ccheck_nntp   check_smtp.opopen.c
  check_dns.ocheck_nt check_snmp  popen.h
  check_dummycheck_nt.c   check_snmp.cpopen.o
  check_dummy.c  check_nt.o   check_snmp.oruncmd.c
  check_dummy.o  check_ntpcheck_ssh   runcmd.h
  check_fping.c  check_ntp.c  check_ssh.c runcmd.o
  check_ftp  check_ntp.o  check_ssh.o sslutils.c
  check_game.c   check_ntp_peer   check_swap  sslutils.o
  check_hpjd check_ntp_peer.c check_swap.ct
  check_hpjd.c   check_ntp_peer.o check_swap.ourlize
  check_hpjd.o   check_ntp_time   check_tcp   urlize.c
  check_http check_ntp_time.c check_tcp.c urlize.o
  check_http.c   check_ntp_time.o check_tcp.o utils.c
  check_http.o   check_nwstat check_time  utils.h
  check_ide_smartcheck_nwstat.c   check_time.cutils.o
  check_ide_smart.c  check_nwstat.o   check_time.o
  [r...@nagios01 plugins]#
 
  Please advice,
 
  am



Re: [Nagios-users] check_snmp plugin not visible

2010-03-08 Thread Ambati Srinivas
Hi,

Please elaborate on  'add --with-snmp to your plugins compile'. so missing
net-snmp-devel packages was the prob?

Thanks,

AM




On Tue, Mar 9, 2010 at 1:33 AM, Kyle O'Donnell nag...@z3b.org wrote:

 yum install net-snmp-devel

 add --with-snmp to your plugins compile

 On Tue, 9 Mar 2010 01:26:37 +0530, Ambati Srinivas am.sr...@gmail.com
 wrote:
  Hi,
 
  I never expected this speed reply :-) Thanks much.
 
  Yep Installed net-snmp-5.4.2.1-19.fc12.i686  and
  net-snmp-utils-5.4.2.1-19.fc12.i686 on nagios core however I have not
 yet
  enable snmp monitoring in file /usr/local/nagios/etc/nagios.cfg   does
 that
  effect???
 
  vi /usr/local/nagios/etc/nagios.cfg
  # Definitions for monitoring a router/switch
  #cfg_file=/usr/local/nagios/etc/objects/switch.cfg
 
 
  Please advice further
 
  AM
 
 
 
 
  On Tue, Mar 9, 2010 at 1:16 AM, Kyle O'Donnell nag...@z3b.org wrote:
 
  What were you configure options?  Do you have net-snmp(dev libs too)
  installed?
 
 
  On Tue, 9 Mar 2010 01:05:46 +0530, Ambati Srinivas am.sr...@gmail.com
  wrote:
   Hi,
  
   I very recently installed nagios Nagios-3.2.0 and
  Nagios-plugins-1.4.14on
   fedora 12. All went however I am not able to execute nor see
 check_snmp
   under /usr/local/nagios/libexec/
  
   For your reference:
   [r...@nagios01 plugins]# cd /usr/local/nagios/libexec/
   [r...@nagios01 libexec]# ls
   check_apt   check_file_age  check_log   check_oracle
   check_tcp
   check_breezecheck_flexlmcheck_mailq check_overcr
   check_time
   check_by_sshcheck_ftp   check_mrtg  check_ping
   check_udp
   check_clamd check_http  check_mrtgtraf  check_pop
   check_ups
   check_cluster   check_icmp  check_nagioscheck_procs
   check_users
   check_dhcp  check_ide_smart check_nntp  check_real
   check_wave
   check_dig   check_ifoperstatus  check_ntcheck_rpc
  negate
   check_disk  check_ifstatus  check_ntp   check_sensors
  urlize
   check_disk_smb  check_imap  check_ntp_peer  check_smtp
  utils.pm
   check_dns   check_ircd  check_ntp_time  check_ssh
  utils.sh
   check_dummy check_load  check_nwstatcheck_swap
   [r...@nagios01 libexec]#
  
  
  
   While I can see files in /nagios-plugins-1.4.14/plugins (after untar)
   check_snmp
   check_snmp.c
   check_snmp.o
   For your refernce:
   [r...@nagios01 Downloads]# ls
   nagios-3.2.0 nagios-plugins-1.4.14
   nagios-3.2.0.tar.gz  nagios-plugins-1.4.14.tar.gz
   [r...@nagios01 Downloads]# pwd
   /home//Downloads
   [r...@nagios01 Downloads]# ls
   nagios-3.2.0 nagios-plugins-1.4.14
   nagios-3.2.0.tar.gz  nagios-plugins-1.4.14.tar.gz
   [r...@nagios01 Downloads]#
   [r...@nagios01 libexec]# cd
   /home//Downloads/nagios-plugins-1.4.14/plugins
   [r...@nagios01 plugins]# pwd
   /home//Downloads/nagios-plugins-1.4.14/plugins
   [r...@nagios01 plugins]# ls
   check_apt  check_ide_smart.ocheck_overcrcheck_udp
   check_apt.ccheck_imap   check_overcr.c  check_ups
   check_apt.ocheck_ldap.c check_overcr.o  check_ups.c
   check_by_ssh   check_load   check_pgsql.c   check_ups.o
   check_by_ssh.c check_load.c check_ping  check_users
   check_by_ssh.o check_load.o check_ping.ccheck_users.c
   check_clamdcheck_mrtg   check_ping.ocheck_users.o
   check_cluster  check_mrtg.c check_pop   common.h
   check_cluster.ccheck_mrtg.o check_procs Makefile
   check_cluster.ocheck_mrtgtraf   check_procs.c   Makefile.am
   check_dig  check_mrtgtraf.c check_procs.o   Makefile.in
   check_dig.ccheck_mrtgtraf.o check_radius.c  negate
   check_dig.ocheck_mysql.ccheck_real  negate.c
   check_disk check_mysql_query.c  check_real.cnegate.o
   check_disk.c   check_nagios check_real.onetutils.c
   check_disk.o   check_nagios.c   check_smtp  netutils.h
   check_dns  check_nagios.o   check_smtp.cnetutils.o
   check_dns.ccheck_nntp   check_smtp.opopen.c
   check_dns.ocheck_nt check_snmp  popen.h
   check_dummycheck_nt.c   check_snmp.cpopen.o
   check_dummy.c  check_nt.o   check_snmp.oruncmd.c
   check_dummy.o  check_ntpcheck_ssh   runcmd.h
   check_fping.c  check_ntp.c  check_ssh.c runcmd.o
   check_ftp  check_ntp.o  check_ssh.o sslutils.c
   check_game.c   check_ntp_peer   check_swap  sslutils.o
   check_hpjd check_ntp_peer.c check_swap.ct
   check_hpjd.c   check_ntp_peer.o check_swap.ourlize
   check_hpjd.o   check_ntp_time   check_tcp   urlize.c
   check_http check_ntp_time.c check_tcp.c urlize.o
   check_http.c   

Re: [Nagios-users] check_snmp plugin not visible

2010-03-08 Thread Ambati Srinivas
   Hi,


 Please elaborate on  'add --with-snmp to your plugins compile' as I am new
 to monitoring. so missing net-snmp-devel packages was the prob?

 Very much appreciate.


 Thanks,

 AM





 On Tue, Mar 9, 2010 at 1:33 AM, Kyle O'Donnell nag...@z3b.org wrote:

 yum install net-snmp-devel

 add --with-snmp to your plugins compile

 On Tue, 9 Mar 2010 01:26:37 +0530, Ambati Srinivas am.sr...@gmail.com
 wrote:
  Hi,
 
  I never expected this speed reply :-) Thanks much.
 
  Yep Installed net-snmp-5.4.2.1-19.fc12.i686  and
  net-snmp-utils-5.4.2.1-19.fc12.i686 on nagios core however I have not
 yet
  enable snmp monitoring in file /usr/local/nagios/etc/nagios.cfg   does
 that
  effect???
 
  vi /usr/local/nagios/etc/nagios.cfg
  # Definitions for monitoring a router/switch
  #cfg_file=/usr/local/nagios/etc/objects/switch.cfg
 
 
  Please advice further
 
  AM
 
 
 
 
  On Tue, Mar 9, 2010 at 1:16 AM, Kyle O'Donnell nag...@z3b.org wrote:
 
  What were you configure options?  Do you have net-snmp(dev libs too)
  installed?
 
 
  On Tue, 9 Mar 2010 01:05:46 +0530, Ambati Srinivas am.sr...@gmail.com
 
  wrote:
   Hi,
  
   I very recently installed nagios Nagios-3.2.0 and
  Nagios-plugins-1.4.14on
   fedora 12. All went however I am not able to execute nor see
 check_snmp
   under /usr/local/nagios/libexec/
  
   For your reference:
   [r...@nagios01 plugins]# cd /usr/local/nagios/libexec/
   [r...@nagios01 libexec]# ls
   check_apt   check_file_age  check_log   check_oracle
   check_tcp
   check_breezecheck_flexlmcheck_mailq check_overcr
   check_time
   check_by_sshcheck_ftp   check_mrtg  check_ping
   check_udp
   check_clamd check_http  check_mrtgtraf  check_pop
   check_ups
   check_cluster   check_icmp  check_nagioscheck_procs
   check_users
   check_dhcp  check_ide_smart check_nntp  check_real
   check_wave
   check_dig   check_ifoperstatus  check_ntcheck_rpc
  negate
   check_disk  check_ifstatus  check_ntp   check_sensors
  urlize
   check_disk_smb  check_imap  check_ntp_peer  check_smtp
  utils.pm
   check_dns   check_ircd  check_ntp_time  check_ssh
  utils.sh
   check_dummy check_load  check_nwstatcheck_swap
   [r...@nagios01 libexec]#
  
  
  
   While I can see files in /nagios-plugins-1.4.14/plugins (after untar)
   check_snmp
   check_snmp.c
   check_snmp.o
   For your refernce:
   [r...@nagios01 Downloads]# ls
   nagios-3.2.0 nagios-plugins-1.4.14
   nagios-3.2.0.tar.gz  nagios-plugins-1.4.14.tar.gz
   [r...@nagios01 Downloads]# pwd
   /home//Downloads
   [r...@nagios01 Downloads]# ls
   nagios-3.2.0 nagios-plugins-1.4.14
   nagios-3.2.0.tar.gz  nagios-plugins-1.4.14.tar.gz
   [r...@nagios01 Downloads]#
   [r...@nagios01 libexec]# cd
   /home//Downloads/nagios-plugins-1.4.14/plugins
   [r...@nagios01 plugins]# pwd
   /home//Downloads/nagios-plugins-1.4.14/plugins
   [r...@nagios01 plugins]# ls
   check_apt  check_ide_smart.ocheck_overcrcheck_udp
   check_apt.ccheck_imap   check_overcr.c  check_ups
   check_apt.ocheck_ldap.c check_overcr.o  check_ups.c
   check_by_ssh   check_load   check_pgsql.c   check_ups.o
   check_by_ssh.c check_load.c check_ping  check_users
   check_by_ssh.o check_load.o check_ping.ccheck_users.c
   check_clamdcheck_mrtg   check_ping.ocheck_users.o
   check_cluster  check_mrtg.c check_pop   common.h
   check_cluster.ccheck_mrtg.o check_procs Makefile
   check_cluster.ocheck_mrtgtraf   check_procs.c   Makefile.am
   check_dig  check_mrtgtraf.c check_procs.o   Makefile.in
   check_dig.ccheck_mrtgtraf.o check_radius.c  negate
   check_dig.ocheck_mysql.ccheck_real  negate.c
   check_disk check_mysql_query.c  check_real.cnegate.o
   check_disk.c   check_nagios check_real.onetutils.c
   check_disk.o   check_nagios.c   check_smtp  netutils.h
   check_dns  check_nagios.o   check_smtp.cnetutils.o
   check_dns.ccheck_nntp   check_smtp.opopen.c
   check_dns.ocheck_nt check_snmp  popen.h
   check_dummycheck_nt.c   check_snmp.cpopen.o
   check_dummy.c  check_nt.o   check_snmp.oruncmd.c
   check_dummy.o  check_ntpcheck_ssh   runcmd.h
   check_fping.c  check_ntp.c  check_ssh.c runcmd.o
   check_ftp  check_ntp.o  check_ssh.o sslutils.c
   check_game.c   check_ntp_peer   check_swap  sslutils.o
   check_hpjd check_ntp_peer.c check_swap.ct
   check_hpjd.c   check_ntp_peer.o check_swap.ourlize
   check_hpjd.o   check_ntp_time   check_tcp   urlize.c
   check_http 

Re: [Nagios-users] check_snmp plugin not visible

2010-03-08 Thread Jatin Davey

Hi Ambati

I followed this link:

http://svn.openvpn.net/projects/openvpn/misc/mibagent/README.txt

and it solved all my issues , Things went smoothly after following the 
installation instructions as mentioned. Make sure you have access to the 
fedora repositories to download the pacakages.


Thanks
Jatin

On 3/9/2010 1:43 AM, Ambati Srinivas wrote:

   Hi,


Please elaborate on  'add --with-snmp to your plugins compile' as
I am new to monitoring. so missing net-snmp-devel packages was the
prob?

Very much appreciate.

Thanks,

AM





On Tue, Mar 9, 2010 at 1:33 AM, Kyle O'Donnell nag...@z3b.org
mailto:nag...@z3b.org wrote:

yum install net-snmp-devel

add --with-snmp to your plugins compile

On Tue, 9 Mar 2010 01:26:37 +0530, Ambati Srinivas
am.sr...@gmail.com mailto:am.sr...@gmail.com
wrote:
 Hi,

 I never expected this speed reply :-) Thanks much.

 Yep Installed net-snmp-5.4.2.1-19.fc12.i686  and
 net-snmp-utils-5.4.2.1-19.fc12.i686 on nagios core however I
have not
yet
 enable snmp monitoring in file
/usr/local/nagios/etc/nagios.cfg   does
that
 effect???

 vi /usr/local/nagios/etc/nagios.cfg
 # Definitions for monitoring a router/switch
 #cfg_file=/usr/local/nagios/etc/objects/switch.cfg


 Please advice further

 AM




 On Tue, Mar 9, 2010 at 1:16 AM, Kyle O'Donnell
nag...@z3b.org mailto:nag...@z3b.org wrote:

 What were you configure options?  Do you have net-snmp(dev
libs too)
 installed?


 On Tue, 9 Mar 2010 01:05:46 +0530, Ambati Srinivas
am.sr...@gmail.com mailto:am.sr...@gmail.com
 wrote:
  Hi,
 
  I very recently installed nagios Nagios-3.2.0 and
 Nagios-plugins-1.4.14on
  fedora 12. All went however I am not able to execute nor see
check_snmp
  under /usr/local/nagios/libexec/
 
  For your reference:
  [r...@nagios01 plugins]# cd /usr/local/nagios/libexec/
  [r...@nagios01 libexec]# ls
  check_apt   check_file_age  check_log  
check_oracle

  check_tcp
  check_breezecheck_flexlmcheck_mailq
check_overcr

  check_time
  check_by_sshcheck_ftp   check_mrtg
 check_ping

  check_udp
  check_clamd check_http  check_mrtgtraf  check_pop
  check_ups
  check_cluster   check_icmp  check_nagios  
 check_procs

  check_users
  check_dhcp  check_ide_smart check_nntp
 check_real

  check_wave
  check_dig   check_ifoperstatus  check_ntcheck_rpc
 negate
  check_disk  check_ifstatus  check_ntp  
check_sensors

 urlize
  check_disk_smb  check_imap  check_ntp_peer
 check_smtp
 utils.pm http://utils.pm
  check_dns   check_ircd  check_ntp_time  check_ssh
 utils.sh
  check_dummy check_load  check_nwstat  
 check_swap

  [r...@nagios01 libexec]#
 
 
 
  While I can see files in /nagios-plugins-1.4.14/plugins
(after untar)
  check_snmp
  check_snmp.c
  check_snmp.o
  For your refernce:
  [r...@nagios01 Downloads]# ls
  nagios-3.2.0 nagios-plugins-1.4.14
  nagios-3.2.0.tar.gz  nagios-plugins-1.4.14.tar.gz
  [r...@nagios01 Downloads]# pwd
  /home//Downloads
  [r...@nagios01 Downloads]# ls
  nagios-3.2.0 nagios-plugins-1.4.14
  nagios-3.2.0.tar.gz  nagios-plugins-1.4.14.tar.gz
  [r...@nagios01 Downloads]#
  [r...@nagios01 libexec]# cd
  /home//Downloads/nagios-plugins-1.4.14/plugins
  [r...@nagios01 plugins]# pwd
  /home//Downloads/nagios-plugins-1.4.14/plugins
  [r...@nagios01 plugins]# ls
  check_apt  check_ide_smart.ocheck_overcr  
 check_udp

  check_apt.ccheck_imap   check_overcr.c
 check_ups
  check_apt.ocheck_ldap.c check_overcr.o
 check_ups.c
  check_by_ssh   check_load   check_pgsql.c  
check_ups.o
  check_by_ssh.c check_load.c check_ping
 check_users
  check_by_ssh.o check_load.o check_ping.c  
 check_users.c
  check_clamdcheck_mrtg   check_ping.o  
 check_users.o
  check_cluster  check_mrtg.c check_pop  
common.h
  check_cluster.c   

[Nagios-users] check_snmp disk space monitoring

2010-02-17 Thread David Dyer-Bennet

I'm playing with using check_snmp to look at disk space, with commands
(working from the command line so far) like:

/usr/lib/nagios/plugins/check_snmp -C public -P 2c -H localhost -o
dskErrorMsg.2 -r '^\s*$'

([[:space:]] doesn't work any better than \s either)

I'm trying to monitor the error message rather than the simple flag so
that the data returned will include the error when one is found.  I'm
trying to use the regex capability to to match an empty error message; so
that anything non-empty will be reported as an error.

And I'm not getting anywhere.  I'm mostly pretty good with regexps, but
despite claiming in --help to support extended regular expressions, it
doesn't seem to.  In particular the ^ for beginning of text and $ for
end of text don't seem to be working.

Clues!  Clues for the poor!

Is this a basically stupid approach, by the way?

Oh, and how does -r work with multiply OIDs in -o?  What's the syntax for
providing multiple -r values, and what happens if you only provide one?


-- 
David Dyer-Bennet, d...@dd-b.net; http://dd-b.net/
Snapshots: http://dd-b.net/dd-b/SnapshotAlbum/data/
Photos: http://dd-b.net/photography/gallery/
Dragaera: http://dragaera.info


--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
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 disk space monitoring

2010-02-17 Thread Jim Avery
On 17 February 2010 19:45, David Dyer-Bennet d...@dd-b.net wrote:

 I'm playing with using check_snmp to look at disk space, with commands
 (working from the command line so far) like:

 /usr/lib/nagios/plugins/check_snmp -C public -P 2c -H localhost -o
 dskErrorMsg.2 -r '^\s*$'

 ([[:space:]] doesn't work any better than \s either)

 I'm trying to monitor the error message rather than the simple flag so
 that the data returned will include the error when one is found.  I'm
 trying to use the regex capability to to match an empty error message; so
 that anything non-empty will be reported as an error.

 And I'm not getting anywhere.  I'm mostly pretty good with regexps, but
 despite claiming in --help to support extended regular expressions, it
 doesn't seem to.  In particular the ^ for beginning of text and $ for
 end of text don't seem to be working.

 Clues!  Clues for the poor!

 Is this a basically stupid approach, by the way?

 Oh, and how does -r work with multiply OIDs in -o?  What's the syntax for
 providing multiple -r values, and what happens if you only provide one?


I think you're maybe a bit ambitious using check_snmp for disk space.
I recommend you use check_snmp_storage.pl which you will find at
http://nagios.manubulon.com/snmp_storage.html


hth,

Jim

--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
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 with regular expression

2009-12-10 Thread shadih rahman
List,
   I am trying to use check_snmp plugin with the following regular
expression and I am getting an error, can someone point out what am I doing
wrong.  Thanks



/usr/lib64/nagios/plugins/check_snmp -H hostname -C community -o
.1.3.6.1.2.1.1.6.0 -r ^*.some string*$

Could Not Compile Regular Expressioncheck_snmp: Could not parse arguments




-- 
Cordially,
Shadhin Rahman
--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
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 with regular expression

2009-12-10 Thread Greg Pangrazio
did you mean
^*.some string.*$

notice the period before the second *

Greg Pangrazio
pangr...@gmail.com





On Thu, Dec 10, 2009 at 9:18 AM, shadih rahman shadhi...@gmail.com wrote:
 List,
    I am trying to use check_snmp plugin with the following regular
 expression and I am getting an error, can someone point out what am I doing
 wrong.  Thanks



 /usr/lib64/nagios/plugins/check_snmp -H hostname -C community -o
 .1.3.6.1.2.1.1.6.0 -r ^*.some string*$

 Could Not Compile Regular Expressioncheck_snmp: Could not parse arguments




 --
 Cordially,
 Shadhin Rahman

 --
 Return on Information:
 Google Enterprise Search pays you back
 Get the facts.
 http://p.sf.net/sfu/google-dev2dev

 ___
 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


--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
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 with regular expression

2009-12-10 Thread Martin Melin
It looks like you're trying to match some string, no matter where it
appears in the document. In that case, anchoring to line beginning and end
is just extra work. Simply match on some string, and you're good to go.

The asterisk is a modifier to the dot, so it needs to come after that. So
the regex you pasted should probably be ^.*some string.*$, but this is
functionally equivalent to some string.

Regards,
Martin Melin

On Thu, Dec 10, 2009 at 4:18 PM, shadih rahman shadhi...@gmail.com wrote:

 List,
I am trying to use check_snmp plugin with the following regular
 expression and I am getting an error, can someone point out what am I doing
 wrong.  Thanks



 /usr/lib64/nagios/plugins/check_snmp -H hostname -C community -o
 .1.3.6.1.2.1.1.6.0 -r ^*.some string*$

 Could Not Compile Regular Expressioncheck_snmp: Could not parse arguments




 --
 Cordially,
 Shadhin Rahman


 --
 Return on Information:
 Google Enterprise Search pays you back
 Get the facts.
 http://p.sf.net/sfu/google-dev2dev

 ___
 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

--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
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 problem

2009-11-23 Thread Brandon Williams
Hey Guys I am trying to monitor a switch by using snmp.  When I run the 
check_snmp I get this result


./check_snmp -H x.x.x.x -C c...@m -P 2c -o .1.3.6.1.4.1.6027.3.10.1.2.2.1.14.1
SNMP problem - No data received from host
CMD: /usr/bin/snmpget -t 1 -r 5 -m '' -v 2c [authpriv] 10.7.128.77:161  
.1.3.6.1.4.1.6027.3.10.1.2.2.1.14.1

If I were to run snmpget I am able to get results

su nagios -c snmpget -t 1 -r 5 -m '' -v 2c -c c...@m x.x.x.x:161  
.1.3.6.1.4.1.6027.3.10.1.2.2.1.14.1
iso.3.6.1.4.1.6027.3.10.1.2.2.1.14.1 = Gauge32: 61

Any ideas on why check_snmp is having a problem?  The only odd thing I see is 
[authpriv] which I guess means it is hiding the community string.  The 
community string I am showing is not the actual one we use.  The one we use has 
letters and numbers.  Would that have anything to do with it?


Brandon Williams
NOC Engineer
Cell: 415.624.4577
Skype-ID: bwilliams3000

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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 problem

2009-11-23 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 23/11/09 07:10 PM, Brandon Williams wrote:
 Hey Guys I am trying to monitor a switch by using snmp.  When I run the
 check_snmp I get this result
 
  
 
  
 
 ./check_snmp -H x.x.x.x -C c...@m -P 2c -o
 .1.3.6.1.4.1.6027.3.10.1.2.2.1.14.1
 
 SNMP problem - No data received from host
 
 CMD: /usr/bin/snmpget -t 1 -r 5 -m '' -v 2c [authpriv] 10.7.128.77:161 
 .1.3.6.1.4.1.6027.3.10.1.2.2.1.14.1
 
  
 
 If I were to run snmpget I am able to get results
 
  
 
 su nagios -c snmpget -t 1 -r 5 -m '' -v 2c -c c...@m x.x.x.x:161 
 .1.3.6.1.4.1.6027.3.10.1.2.2.1.14.1
 
 iso.3.6.1.4.1.6027.3.10.1.2.2.1.14.1 = Gauge32: 61
 
  
 
 Any ideas on why check_snmp is having a problem?  The only odd thing I
 see is [authpriv] which I guess means it is hiding the community
 string.  The community string I am showing is not the actual one we
 use.  The one we use has letters and numbers.  Would that have anything
 to do with it?

Which version of check_snmp are you using? 1.4.14 should have better
handling of special characters than anything before... whichever version
you use it would be nice it you could try the other (1.4.14 vs older).

Besides that I don't see what wouldn't work. Maybe try with debug output
(-vvv).

NB: check_snmp v1.4.14 has broken support for multiple -o option, but
you can still pass multiple oids separated with commas.

- --
Thomas
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFLC2tT6dZ+Kt5BchYRAijpAKCKiByUCak8yBy0YcqaKQM/T0ynpwCbBYNm
G62RDLRz8ZYlKym02b4dUok=
=Mljf
-END PGP SIGNATURE-

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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 query for bgp

2009-09-17 Thread Emily
Hello, does anyone know how I can do an snmp_check (ie what is the OID/MIB)
to use for seeing if bgp has flapped? I currently do an icmp poll on the ip
address of the port on the router, but the outage was so brief as to not
register in nagios, I am looking for a way to monitor the time-stamp on the
bgp session, that if 0:00 or something less than 24:00 send an alert.

much appreciation...
em
--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf___
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 query for bgp

2009-09-17 Thread Assaf Flatto


On Thursday 17 September 2009 14:59:31 Emily wrote:
 Hello, does anyone know how I can do an snmp_check (ie what is the OID/MIB)
 to use for seeing if bgp has flapped? I currently do an icmp poll on the ip
 address of the port on the router, but the outage was so brief as to not
 register in nagios, I am looking for a way to monitor the time-stamp on the
 bgp session, that if 0:00 or something less than 24:00 send an alert.

 much appreciation...
 em
have you tried this :

http://www.monitoringexchange.org/cgi-bin/page.cgi?g=Detailed%2F1375.html;d=1


-- 
Assaf Flatto
SSP Ops Team
Linux System Administrator
169 Euston Road, London, NW1 2AE





IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.

We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.

Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK 
Limited by
email, you consent to us monitoring and reading any such correspondence.

Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.

Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, 
Brooklands, Weybridge. Surrey. KT13 0NY
 
 

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
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

2009-07-14 Thread SYS ADMIN
It seems that for some reason my new install of nagios 3.0.6 into Debian
lenny has failed to install check_snmp into the
/usr/local/nagios/etc/libexec folder.
It has a multitude of other check_snmp_blah blah, which I am sure are
all based on it, but IT is not there, and several of my plugins call for
check_snmp.

How can I get it there?

Psa 122:6  Pray for the peace of Jerusalem: they shall prosper that
love thee.
 
Michael T Gregg
Director of Information Technology
Christian Medical  Dental Associations
P.O. Box 7500   *Bristol, TN 37621
Phone (423)844-1000   *Fax (423)844-1017
sysad...@cmda.org   *   http://www.cmda.org

Protect conscience rights: http://www.Freedom2Care.org/ 

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
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

2009-07-14 Thread Natxo Asenjo
hi,

http://nagiosplugins.org/man/check_snmp

quote

This plugin uses the 'snmpget' command included with the NET-SNMP package.
if you don't have the package installed, you will need to download it from
http://net-snmp.sourceforge.net before you can use this plugin.

/quote

The Net-SNMP package is in debian 'snmp', just install that package
and recomplie the plugins.

-- 
Groeten,
J.Asenjo

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
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

2009-07-14 Thread Marc Powell
You received an answer earlier today that you seem to have ignored...  
I'll try --

On Jul 14, 2009, at 3:45 PM, SYS ADMIN wrote:

 It seems that for some reason my new install of nagios 3.0.6 into  
 Debian
 lenny has failed to install check_snmp into the
 /usr/local/nagios/etc/libexec folder.

No install of the nagios source/package includes any plugins. How did  
you install the nagios-plugins? Source or package? If by package, does  
that package include the plugin? Which package did you install and who  
maintains that package? Do you have all the required and optional  
dependencies for that package installed?

 It has a multitude of other check_snmp_blah blah, which I am sure  
 are
 all based on it,

They aren't. They are almost certainly the perl based contrib plugins  
that rely on perl-net-snmp. They are not related to check_snmp in any  
way, other than being able to speak SNMP, and using a different way of  
doing so.

 but IT is not there, and several of my plugins call for
 check_snmp.

 How can I get it there?

Depends on how you installed the plugins. If you installed from  
source, read the output of ./configure or the REQUIREMENTS file.  
check_snmp depends on  other software before it will be compiled --

REQUIREMENTS -
check_snmp:
 - Requires the NET-SNMP package available from
   http://net-snmp.sourceforge.net/;

Note that this is *not* perl-net-snmp. Similar names but completely  
different software. As your previous respondent noted, this is  
probably Debian's 'snmp' package.

--
Marc

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
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 - warning numbers

2009-05-11 Thread Matias Blanco
I can`t see that information.

I don`t have 0.0.0.0:161

The problem is that I can`t add the port exeption in winxp, because some
admin had block it by policies from active directory.
I have acces to ActDir but I don`t know what is the policy blocks it

Sorry for my bad English

Matias...




-Mensaje original-
De: Jones, Stuart [mailto:stuart.jo...@health.wa.gov.au] 
Enviado el: Domingo, 10 de Mayo de 2009 20:55
Para: Matias Blanco
Asunto: RE: [Nagios-users] check_snmp - warning numbers

When you do a 
netstat -an 

on the PC in question do you see something similar to: 
0.0.0.0:161 

i.e. the PC is listening on port 161 UDP?

Rgds Stuart

-Original Message-
From: Matias Blanco [mailto:mat...@valastro.com.ar] 
Sent: Saturday, 9 May 2009 12:02 AM
To: 'Alejandro Sánchez Meroño'; Nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] check_snmp - warning numbers

Hello,

When i made an snmpwalk to a ip computer there is no response.
The snmpwalk to a switch,router or printer works ok.

Does any body know the reason?


Cristian...




-Mensaje original-
De: Matias Blanco [mailto:mat...@valastro.com.ar] Enviado el: Jueves, 07
de Mayo de 2009 17:02
Para: 'Alejandro Sánchez Meroño'; Nagios-users@lists.sourceforge.net
Asunto: Re: [Nagios-users] check_snmp - warning numbers

Hello,
How can i do an snmpwalk on my switch?

Thanks,

Cristian...




-Mensaje original-
De: Alejandro Sánchez Meroño [mailto:alejandro.sanc...@ite.es] Enviado
el: Jueves, 07 de Mayo de 2009 05:44
Para: Matias Blanco; Nagios-users@lists.sourceforge.net
Asunto: RE: [Nagios-users] check_snmp - warning numbers

Hola de nuevo...

I'll answer you in English so that anybody in the list can understand
and participate in this subject.

I think that if you don't know exactly which parameter to monitor you
should browse the whole OID list that you receive when you do a snmpwalk
on your switch, and identify the ones that fit your needs, with the help
of the website I said yesterday, or any other OIDs reference.

My case: The only thing I want to detect is if there is any damaged port
in any of my switches. So what I did was to snmpwalk on a switch which I
positively knew that had its port #2 damaged, and discover which OID was
significantly different for this port. And the one I found is: 

iso.3.6.1.2.1.10.7.2.1.7

(maybe you can find it as its equivalent: SNMPv2-SMI::mib-2.10.7.2.1.7)

defined as: a count of frames for which the first transmission attempt
on a particular interface is delayed because the medium is busy.

The thing is that it's the only OID I found that gave a very high value
for port #2 (about 65,000 or so) and 0 for the rest of ports that work
properly.

The command I defined for this was like this: 

define command {
command_name check_port
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C password -O
iso.3.6.1.2.1.10.7.2.1.7.$ARG1$ -w 1 -c 10 -u retries }

For sure there must be somebody else in the list who can give to you a
more detailed or a more formally correct answer...

Hasta la proxima, 

  Alejandro

==
Alejandro Sanchez Merono
Area de Informatica y Comunicaciones
Instituto de Tecnologia Electrica - http://www.ite.es Valencia - Spain



-Mensaje original-
De: Matias Blanco [mailto:mat...@valastro.com.ar] 
Enviado el: miércoles, 06 de mayo de 2009 19:27
Para: Alejandro Sánchez Meroño; Nagios-users@lists.sourceforge.net
Asunto: RE: [Nagios-users] check_snmp - warning numbers

Hola Alejandro,

Ahora otra cosa:

De que manera crees que pueda chequear los puertos de mi switch con
nagios para tener una idea más clara de lo que está sucediendo?
Porque esos paquetes entrantes con errores no se si son por causa de la
PC o de los puerto del switch...

Muchas Gracias...

Cristian






Hola Matías... :-) and hola everyone...

There exists a magical website where to identify every OID you can check
with SNMP, the link is: 

http://support.ipmonitor.com/mibs_byoidtree.aspx

For your particular issue, if you type RFC1213-MIB at the Search
for: form, click the result given (RFC1213-MIB), and then View:
Oid-tree, you'll be able to locate ifInErrors(14) at the tree shown,
and clicking it you'll find its Description, which reads literally:

The number of inbound packets that contained errors preventing them
from being deliverable to a higher-layer protocol.

That's the answer to your question!!

Now some other questions appear...

Wouldn't it be nicer to know what exactly are you monitoring before you
monitor it, so you could properly interpret the results?

Is that parameter (number of inbound packets that contained errors and
blah blah blah...) significant enough to determine if a port is working
properly or not? 

Hope this helps...

Best regards, 

 Alejandro

==
Alejandro Sanchez Merono
Area de Informatica y Comunicaciones
Instituto de Tecnologia Electrica - http://www.ite.es Valencia - Spain


 

-Mensaje original

Re: [Nagios-users] check_snmp - warning numbers

2009-05-08 Thread Matias Blanco
Hello,

When i made an snmpwalk to a ip computer there is no response.
The snmpwalk to a switch,router or printer works ok.

Does any body know the reason?


Cristian...




-Mensaje original-
De: Matias Blanco [mailto:mat...@valastro.com.ar] 
Enviado el: Jueves, 07 de Mayo de 2009 17:02
Para: 'Alejandro Sánchez Meroño'; Nagios-users@lists.sourceforge.net
Asunto: Re: [Nagios-users] check_snmp - warning numbers

Hello, 
How can i do an snmpwalk on my switch?

Thanks,

Cristian...




-Mensaje original-
De: Alejandro Sánchez Meroño [mailto:alejandro.sanc...@ite.es] 
Enviado el: Jueves, 07 de Mayo de 2009 05:44
Para: Matias Blanco; Nagios-users@lists.sourceforge.net
Asunto: RE: [Nagios-users] check_snmp - warning numbers

Hola de nuevo...

I'll answer you in English so that anybody in the list can understand
and participate in this subject.

I think that if you don't know exactly which parameter to monitor you
should browse the whole OID list that you receive when you do a snmpwalk
on your switch, and identify the ones that fit your needs, with the help
of the website I said yesterday, or any other OIDs reference.

My case: The only thing I want to detect is if there is any damaged port
in any of my switches. So what I did was to snmpwalk on a switch which I
positively knew that had its port #2 damaged, and discover which OID was
significantly different for this port. And the one I found is: 

iso.3.6.1.2.1.10.7.2.1.7

(maybe you can find it as its equivalent: SNMPv2-SMI::mib-2.10.7.2.1.7)

defined as: a count of frames for which the first transmission attempt
on a particular interface is delayed because the medium is busy.

The thing is that it's the only OID I found that gave a very high value
for port #2 (about 65,000 or so) and 0 for the rest of ports that work
properly.

The command I defined for this was like this: 

define command {
command_name check_port
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C password -O
iso.3.6.1.2.1.10.7.2.1.7.$ARG1$ -w 1 -c 10 -u retries
}

For sure there must be somebody else in the list who can give to you a
more detailed or a more formally correct answer...

Hasta la proxima, 

  Alejandro

==
Alejandro Sanchez Merono
Area de Informatica y Comunicaciones
Instituto de Tecnologia Electrica - http://www.ite.es 
Valencia - Spain



-Mensaje original-
De: Matias Blanco [mailto:mat...@valastro.com.ar] 
Enviado el: miércoles, 06 de mayo de 2009 19:27
Para: Alejandro Sánchez Meroño; Nagios-users@lists.sourceforge.net
Asunto: RE: [Nagios-users] check_snmp - warning numbers

Hola Alejandro,

Ahora otra cosa:

De que manera crees que pueda chequear los puertos de mi switch con
nagios para tener una idea más clara de lo que está sucediendo?
Porque esos paquetes entrantes con errores no se si son por causa de la
PC o de los puerto del switch...

Muchas Gracias...

Cristian






Hola Matías... :-) and hola everyone...

There exists a magical website where to identify every OID you can check
with SNMP, the link is: 

http://support.ipmonitor.com/mibs_byoidtree.aspx

For your particular issue, if you type RFC1213-MIB at the Search
for: form, click the result given (RFC1213-MIB), and then View:
Oid-tree, you'll be able to locate ifInErrors(14) at the tree shown,
and clicking it you'll find its Description, which reads literally:

The number of inbound packets that contained errors preventing them
from being deliverable to a higher-layer protocol.

That's the answer to your question!!

Now some other questions appear...

Wouldn't it be nicer to know what exactly are you monitoring before you
monitor it, so you could properly interpret the results?

Is that parameter (number of inbound packets that contained errors and
blah blah blah...) significant enough to determine if a port is working
properly or not? 

Hope this helps...

Best regards, 

 Alejandro

==
Alejandro Sanchez Merono
Area de Informatica y Comunicaciones
Instituto de Tecnologia Electrica - http://www.ite.es Valencia - Spain


 

-Mensaje original-
De: Matias Blanco [mailto:mat...@valastro.com.ar] Enviado el: miércoles,
06 de mayo de 2009 17:49
Para: Nagios-users@lists.sourceforge.net
Asunto: [Nagios-users] check_snmp - warning numbers

Hi, I am using the check_snmp nagios`s plugin. And when we check the
ports status of a 3com Baseline 2250 Plus, we recibe many ports results:

SNMP OK - 0
SNMP WARNING - *1*
SNMP WARNING - *84*
SNMP WARNING - *2*
SNMP WARNING - *2*
SNMP WARNING - *4*

The question is, what´s the meaning of the warning numbers?


Other information:
--

# 'check_snmp' command definition
define command{
command_namecheck_snmp
command_line$USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
}

Example of service
---

define service {
use service-15x3x5-switchs
host_name   3COM2250P
service_description

Re: [Nagios-users] check_snmp - warning numbers

2009-05-08 Thread frank
1. Make sure snmpd is running on the host. (classic mistake)
2. Make sure your community string and/or credentials are the same on the 
host and client.
3. Make sure you're using the same snmp version on client and server (v1, 
v2c, or v3)
4. Try running a tcpdump on the host while you're attempting the snmpwalk 
to verify that the snmp requests are reaching the host. At the same time 
verify that the host is trying to send out responses.
   # tcpdump udp port 161

I'm sure there are more tests you can do but this is a start.

-f

On Fri, 8 May 2009, Matias Blanco wrote:

 Date: Fri, 8 May 2009 13:02:28 -0300
 From: Matias Blanco mat...@valastro.com.ar
 To: 'Alejandro S?nchez Mero?o' alejandro.sanc...@ite.es,
 Nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] check_snmp - warning numbers
 
 Hello,

 When i made an snmpwalk to a ip computer there is no response.
 The snmpwalk to a switch,router or printer works ok.

 Does any body know the reason?


 Cristian...




 -Mensaje original-
 De: Matias Blanco [mailto:mat...@valastro.com.ar]
 Enviado el: Jueves, 07 de Mayo de 2009 17:02
 Para: 'Alejandro S?nchez Mero?o'; Nagios-users@lists.sourceforge.net
 Asunto: Re: [Nagios-users] check_snmp - warning numbers

 Hello,
 How can i do an snmpwalk on my switch?

 Thanks,

 Cristian...




 -Mensaje original-
 De: Alejandro S?nchez Mero?o [mailto:alejandro.sanc...@ite.es]
 Enviado el: Jueves, 07 de Mayo de 2009 05:44
 Para: Matias Blanco; Nagios-users@lists.sourceforge.net
 Asunto: RE: [Nagios-users] check_snmp - warning numbers

 Hola de nuevo...

 I'll answer you in English so that anybody in the list can understand
 and participate in this subject.

 I think that if you don't know exactly which parameter to monitor you
 should browse the whole OID list that you receive when you do a snmpwalk
 on your switch, and identify the ones that fit your needs, with the help
 of the website I said yesterday, or any other OIDs reference.

 My case: The only thing I want to detect is if there is any damaged port
 in any of my switches. So what I did was to snmpwalk on a switch which I
 positively knew that had its port #2 damaged, and discover which OID was
 significantly different for this port. And the one I found is:

 iso.3.6.1.2.1.10.7.2.1.7

 (maybe you can find it as its equivalent: SNMPv2-SMI::mib-2.10.7.2.1.7)

 defined as: a count of frames for which the first transmission attempt
 on a particular interface is delayed because the medium is busy.

 The thing is that it's the only OID I found that gave a very high value
 for port #2 (about 65,000 or so) and 0 for the rest of ports that work
 properly.

 The command I defined for this was like this:

 define command {
   command_name check_port
   command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C password -O
 iso.3.6.1.2.1.10.7.2.1.7.$ARG1$ -w 1 -c 10 -u retries
 }

 For sure there must be somebody else in the list who can give to you a
 more detailed or a more formally correct answer...

 Hasta la proxima,

  Alejandro

 ==
 Alejandro Sanchez Merono
 Area de Informatica y Comunicaciones
 Instituto de Tecnologia Electrica - http://www.ite.es
 Valencia - Spain



 -Mensaje original-
 De: Matias Blanco [mailto:mat...@valastro.com.ar]
 Enviado el: mi?rcoles, 06 de mayo de 2009 19:27
 Para: Alejandro S?nchez Mero?o; Nagios-users@lists.sourceforge.net
 Asunto: RE: [Nagios-users] check_snmp - warning numbers

 Hola Alejandro,

 Ahora otra cosa:

 De que manera crees que pueda chequear los puertos de mi switch con
 nagios para tener una idea m?s clara de lo que est? sucediendo?
 Porque esos paquetes entrantes con errores no se si son por causa de la
 PC o de los puerto del switch...

 Muchas Gracias...

 Cristian




 

 Hola Mat?as... :-) and hola everyone...

 There exists a magical website where to identify every OID you can check
 with SNMP, the link is:

 http://support.ipmonitor.com/mibs_byoidtree.aspx

 For your particular issue, if you type RFC1213-MIB at the Search
 for: form, click the result given (RFC1213-MIB), and then View:
 Oid-tree, you'll be able to locate ifInErrors(14) at the tree shown,
 and clicking it you'll find its Description, which reads literally:

 The number of inbound packets that contained errors preventing them
 from being deliverable to a higher-layer protocol.

 That's the answer to your question!!

 Now some other questions appear...

 Wouldn't it be nicer to know what exactly are you monitoring before you
 monitor it, so you could properly interpret the results?

 Is that parameter (number of inbound packets that contained errors and
 blah blah blah...) significant enough to determine if a port is working
 properly or not?

 Hope this helps...

 Best regards,

 Alejandro

 ==
 Alejandro Sanchez Merono
 Area de Informatica y Comunicaciones
 Instituto de Tecnologia Electrica - http://www.ite.es Valencia - Spain




 -Mensaje original

Re: [Nagios-users] check_snmp - warning numbers

2009-05-07 Thread Alejandro Sánchez Meroño
Hola de nuevo...

I'll answer you in English so that anybody in the list can understand and 
participate in this subject.

I think that if you don't know exactly which parameter to monitor you should 
browse the whole OID list that you receive when you do a snmpwalk on your 
switch, and identify the ones that fit your needs, with the help of the website 
I said yesterday, or any other OIDs reference.

My case: The only thing I want to detect is if there is any damaged port in any 
of my switches. So what I did was to snmpwalk on a switch which I positively 
knew that had its port #2 damaged, and discover which OID was significantly 
different for this port. And the one I found is: 

iso.3.6.1.2.1.10.7.2.1.7

(maybe you can find it as its equivalent: SNMPv2-SMI::mib-2.10.7.2.1.7)

defined as: a count of frames for which the first transmission attempt on a 
particular interface is delayed because the medium is busy.

The thing is that it's the only OID I found that gave a very high value for 
port #2 (about 65,000 or so) and 0 for the rest of ports that work properly.

The command I defined for this was like this: 

define command {
command_name check_port
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C password -O 
iso.3.6.1.2.1.10.7.2.1.7.$ARG1$ -w 1 -c 10 -u retries
}

For sure there must be somebody else in the list who can give to you a more 
detailed or a more formally correct answer...

Hasta la proxima, 

  Alejandro

==
Alejandro Sanchez Merono
Area de Informatica y Comunicaciones
Instituto de Tecnologia Electrica - http://www.ite.es 
Valencia - Spain



-Mensaje original-
De: Matias Blanco [mailto:mat...@valastro.com.ar] 
Enviado el: miércoles, 06 de mayo de 2009 19:27
Para: Alejandro Sánchez Meroño; Nagios-users@lists.sourceforge.net
Asunto: RE: [Nagios-users] check_snmp - warning numbers

Hola Alejandro,

Ahora otra cosa:

De que manera crees que pueda chequear los puertos de mi switch con nagios para 
tener una idea más clara de lo que está sucediendo?
Porque esos paquetes entrantes con errores no se si son por causa de la PC o de 
los puerto del switch...

Muchas Gracias...

Cristian






Hola Matías... :-) and hola everyone...

There exists a magical website where to identify every OID you can check with 
SNMP, the link is: 

http://support.ipmonitor.com/mibs_byoidtree.aspx

For your particular issue, if you type RFC1213-MIB at the Search for: form, 
click the result given (RFC1213-MIB), and then View:
Oid-tree, you'll be able to locate ifInErrors(14) at the tree shown, and 
clicking it you'll find its Description, which reads literally:

The number of inbound packets that contained errors preventing them from being 
deliverable to a higher-layer protocol.

That's the answer to your question!!

Now some other questions appear...

Wouldn't it be nicer to know what exactly are you monitoring before you monitor 
it, so you could properly interpret the results?

Is that parameter (number of inbound packets that contained errors and blah 
blah blah...) significant enough to determine if a port is working properly or 
not? 

Hope this helps...

Best regards, 

 Alejandro

==
Alejandro Sanchez Merono
Area de Informatica y Comunicaciones
Instituto de Tecnologia Electrica - http://www.ite.es Valencia - Spain


 

-Mensaje original-
De: Matias Blanco [mailto:mat...@valastro.com.ar] Enviado el: miércoles, 06 de 
mayo de 2009 17:49
Para: Nagios-users@lists.sourceforge.net
Asunto: [Nagios-users] check_snmp - warning numbers

Hi, I am using the check_snmp nagios`s plugin. And when we check the ports 
status of a 3com Baseline 2250 Plus, we recibe many ports results:

SNMP OK - 0
SNMP WARNING - *1*
SNMP WARNING - *84*
SNMP WARNING - *2*
SNMP WARNING - *2*
SNMP WARNING - *4*

The question is, what´s the meaning of the warning numbers?


Other information:
--

# 'check_snmp' command definition
define command{
command_namecheck_snmp
command_line$USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
}

Example of service
---

define service {
use service-15x3x5-switchs
host_name   3COM2250P
service_description Port 03 [In Errors]
check_command   check_snmp!-C public -o ifInErrors.3 -w
0 -m RFC1213-MIB
notifications_enabled   0
}



THANKS...
Matías Blanco.





--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Nagios-users mailing list
Nagios-users

Re: [Nagios-users] check_snmp - warning numbers

2009-05-07 Thread Matias Blanco
Hello, 
How can i do an snmpwalk on my switch?

Thanks,

Cristian...




-Mensaje original-
De: Alejandro Sánchez Meroño [mailto:alejandro.sanc...@ite.es] 
Enviado el: Jueves, 07 de Mayo de 2009 05:44
Para: Matias Blanco; Nagios-users@lists.sourceforge.net
Asunto: RE: [Nagios-users] check_snmp - warning numbers

Hola de nuevo...

I'll answer you in English so that anybody in the list can understand
and participate in this subject.

I think that if you don't know exactly which parameter to monitor you
should browse the whole OID list that you receive when you do a snmpwalk
on your switch, and identify the ones that fit your needs, with the help
of the website I said yesterday, or any other OIDs reference.

My case: The only thing I want to detect is if there is any damaged port
in any of my switches. So what I did was to snmpwalk on a switch which I
positively knew that had its port #2 damaged, and discover which OID was
significantly different for this port. And the one I found is: 

iso.3.6.1.2.1.10.7.2.1.7

(maybe you can find it as its equivalent: SNMPv2-SMI::mib-2.10.7.2.1.7)

defined as: a count of frames for which the first transmission attempt
on a particular interface is delayed because the medium is busy.

The thing is that it's the only OID I found that gave a very high value
for port #2 (about 65,000 or so) and 0 for the rest of ports that work
properly.

The command I defined for this was like this: 

define command {
command_name check_port
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C password -O
iso.3.6.1.2.1.10.7.2.1.7.$ARG1$ -w 1 -c 10 -u retries
}

For sure there must be somebody else in the list who can give to you a
more detailed or a more formally correct answer...

Hasta la proxima, 

  Alejandro

==
Alejandro Sanchez Merono
Area de Informatica y Comunicaciones
Instituto de Tecnologia Electrica - http://www.ite.es 
Valencia - Spain



-Mensaje original-
De: Matias Blanco [mailto:mat...@valastro.com.ar] 
Enviado el: miércoles, 06 de mayo de 2009 19:27
Para: Alejandro Sánchez Meroño; Nagios-users@lists.sourceforge.net
Asunto: RE: [Nagios-users] check_snmp - warning numbers

Hola Alejandro,

Ahora otra cosa:

De que manera crees que pueda chequear los puertos de mi switch con
nagios para tener una idea más clara de lo que está sucediendo?
Porque esos paquetes entrantes con errores no se si son por causa de la
PC o de los puerto del switch...

Muchas Gracias...

Cristian






Hola Matías... :-) and hola everyone...

There exists a magical website where to identify every OID you can check
with SNMP, the link is: 

http://support.ipmonitor.com/mibs_byoidtree.aspx

For your particular issue, if you type RFC1213-MIB at the Search
for: form, click the result given (RFC1213-MIB), and then View:
Oid-tree, you'll be able to locate ifInErrors(14) at the tree shown,
and clicking it you'll find its Description, which reads literally:

The number of inbound packets that contained errors preventing them
from being deliverable to a higher-layer protocol.

That's the answer to your question!!

Now some other questions appear...

Wouldn't it be nicer to know what exactly are you monitoring before you
monitor it, so you could properly interpret the results?

Is that parameter (number of inbound packets that contained errors and
blah blah blah...) significant enough to determine if a port is working
properly or not? 

Hope this helps...

Best regards, 

 Alejandro

==
Alejandro Sanchez Merono
Area de Informatica y Comunicaciones
Instituto de Tecnologia Electrica - http://www.ite.es Valencia - Spain


 

-Mensaje original-
De: Matias Blanco [mailto:mat...@valastro.com.ar] Enviado el: miércoles,
06 de mayo de 2009 17:49
Para: Nagios-users@lists.sourceforge.net
Asunto: [Nagios-users] check_snmp - warning numbers

Hi, I am using the check_snmp nagios`s plugin. And when we check the
ports status of a 3com Baseline 2250 Plus, we recibe many ports results:

SNMP OK - 0
SNMP WARNING - *1*
SNMP WARNING - *84*
SNMP WARNING - *2*
SNMP WARNING - *2*
SNMP WARNING - *4*

The question is, what´s the meaning of the warning numbers?


Other information:
--

# 'check_snmp' command definition
define command{
command_namecheck_snmp
command_line$USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
}

Example of service
---

define service {
use service-15x3x5-switchs
host_name   3COM2250P
service_description Port 03 [In Errors]
check_command   check_snmp!-C public -o ifInErrors.3 -w
0 -m RFC1213-MIB
notifications_enabled   0
}



THANKS...
Matías Blanco.





--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak

[Nagios-users] check_snmp - warning numbers

2009-05-06 Thread Matias Blanco
Hi, I am using the check_snmp nagios`s plugin. And when we check the
ports status of a 3com Baseline 2250 Plus, we recibe many ports results:

SNMP OK – 0
SNMP WARNING - *1*
SNMP WARNING - *84*
SNMP WARNING - *2*
SNMP WARNING - *2*
SNMP WARNING - *4*

The question is, what´s the meaning of the warning numbers?


Other information:
--

# 'check_snmp' command definition
define command{
command_namecheck_snmp
command_line$USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
}

Example of service
---

define service {
use service-15x3x5-switchs
host_name   3COM2250P
service_description Port 03 [In Errors]
check_command   check_snmp!-C public -o ifInErrors.3 -w
0 -m RFC1213-MIB
notifications_enabled   0
}



THANKS...
Matías Blanco.


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
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 - warning numbers

2009-05-06 Thread Marc Powell
Comments below --

On May 6, 2009, at 10:49 AM, Matias Blanco wrote:

 Hi, I am using the check_snmp nagios`s plugin. And when we check the
 ports status of a 3com Baseline 2250 Plus, we recibe many ports  
 results:

 SNMP OK – 0
 SNMP WARNING - *1*
 SNMP WARNING - *84*
 SNMP WARNING - *2*
 SNMP WARNING - *2*
 SNMP WARNING - *4*

 The question is, what´s the meaning of the warning numbers?


Depends on what you're checking...

[snip]

 Example of service
 ---

 define service {
   use service-15x3x5-switchs
   host_name   3COM2250P
   service_description Port 03 [In Errors]
   check_command   check_snmp!-C public -o ifInErrors.3 -w
 0 -m RFC1213-MIB
   notifications_enabled   0
   }

Assuming the numbers above are related to this service --

 From the RFC1213-MIB --

ifInErrors OBJECT-TYPE
 SYNTAX  Counter
 ACCESS  read-only
 STATUS  mandatory
 DESCRIPTION
 The number of inbound packets that contained
 errors preventing them from being deliverable to a
 higher-layer protocol.
 ::= { ifEntry 14 }

For this example service, the number being returned is the number of  
input errors since last counter reset, roll or device restart for the  
interface with SNMP index 3. Note that this does not necessarily  
correspond to Port 3 thanks to the joys of various SNMP  
implementations and device types. You can identify the specific  
interface that currently has an index of 3 using 'snmpwalk -C public - 
v1 ip of device ifDescr'. You may need to substitute '-v2c' for '- 
v1' if you're using SNMP version 2.

--
Marc


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
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 - warning numbers

2009-05-06 Thread Alejandro Sánchez Meroño
Hola Matías... :-) and hola everyone...

There exists a magical website where to identify every OID you can check with 
SNMP, the link is: 

http://support.ipmonitor.com/mibs_byoidtree.aspx

For your particular issue, if you type RFC1213-MIB at the Search for: form, 
click the result given (RFC1213-MIB), and then View: Oid-tree, you'll be 
able to locate ifInErrors(14) at the tree shown, and clicking it you'll find 
its Description, which reads literally:

The number of inbound packets that contained errors preventing them from being 
deliverable to a higher-layer protocol.

That's the answer to your question!!

Now some other questions appear...

Wouldn't it be nicer to know what exactly are you monitoring before you monitor 
it, so you could properly interpret the results?

Is that parameter (number of inbound packets that contained errors and blah 
blah blah...) significant enough to determine if a port is working properly or 
not? 

Hope this helps...

Best regards, 

 Alejandro

==
Alejandro Sanchez Merono
Area de Informatica y Comunicaciones
Instituto de Tecnologia Electrica - http://www.ite.es
Valencia - Spain


 

-Mensaje original-
De: Matias Blanco [mailto:mat...@valastro.com.ar] 
Enviado el: miércoles, 06 de mayo de 2009 17:49
Para: Nagios-users@lists.sourceforge.net
Asunto: [Nagios-users] check_snmp - warning numbers

Hi, I am using the check_snmp nagios`s plugin. And when we check the ports 
status of a 3com Baseline 2250 Plus, we recibe many ports results:

SNMP OK - 0
SNMP WARNING - *1*
SNMP WARNING - *84*
SNMP WARNING - *2*
SNMP WARNING - *2*
SNMP WARNING - *4*

The question is, what´s the meaning of the warning numbers?


Other information:
--

# 'check_snmp' command definition
define command{
command_namecheck_snmp
command_line$USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
}

Example of service
---

define service {
use service-15x3x5-switchs
host_name   3COM2250P
service_description Port 03 [In Errors]
check_command   check_snmp!-C public -o ifInErrors.3 -w
0 -m RFC1213-MIB
notifications_enabled   0
}



THANKS...
Matías Blanco.


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your 
production scanning environment may not be a perfect world - but thanks to 
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 
Series Scanner you'll get full speed at 300 dpi even with all image processing 
features enabled. http://p.sf.net/sfu/kodak-com 
___
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


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
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 - warning numbers

2009-05-06 Thread Matias Blanco
Hola Alejandro,

Ahora otra cosa:

De que manera crees que pueda chequear los puertos de mi switch con
nagios para tener una idea más clara de lo que está sucediendo?
Porque esos paquetes entrantes con errores no se si son por causa de la
PC o de los puerto del switch...

Muchas Gracias...

Cristian






Hola Matías... :-) and hola everyone...

There exists a magical website where to identify every OID you can check
with SNMP, the link is: 

http://support.ipmonitor.com/mibs_byoidtree.aspx

For your particular issue, if you type RFC1213-MIB at the Search
for: form, click the result given (RFC1213-MIB), and then View:
Oid-tree, you'll be able to locate ifInErrors(14) at the tree shown,
and clicking it you'll find its Description, which reads literally:

The number of inbound packets that contained errors preventing them
from being deliverable to a higher-layer protocol.

That's the answer to your question!!

Now some other questions appear...

Wouldn't it be nicer to know what exactly are you monitoring before you
monitor it, so you could properly interpret the results?

Is that parameter (number of inbound packets that contained errors and
blah blah blah...) significant enough to determine if a port is working
properly or not? 

Hope this helps...

Best regards, 

 Alejandro

==
Alejandro Sanchez Merono
Area de Informatica y Comunicaciones
Instituto de Tecnologia Electrica - http://www.ite.es
Valencia - Spain


 

-Mensaje original-
De: Matias Blanco [mailto:mat...@valastro.com.ar] 
Enviado el: miércoles, 06 de mayo de 2009 17:49
Para: Nagios-users@lists.sourceforge.net
Asunto: [Nagios-users] check_snmp - warning numbers

Hi, I am using the check_snmp nagios`s plugin. And when we check the
ports status of a 3com Baseline 2250 Plus, we recibe many ports results:

SNMP OK - 0
SNMP WARNING - *1*
SNMP WARNING - *84*
SNMP WARNING - *2*
SNMP WARNING - *2*
SNMP WARNING - *4*

The question is, what´s the meaning of the warning numbers?


Other information:
--

# 'check_snmp' command definition
define command{
command_namecheck_snmp
command_line$USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
}

Example of service
---

define service {
use service-15x3x5-switchs
host_name   3COM2250P
service_description Port 03 [In Errors]
check_command   check_snmp!-C public -o ifInErrors.3 -w
0 -m RFC1213-MIB
notifications_enabled   0
}



THANKS...
Matías Blanco.




--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
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 output

2009-04-22 Thread shadih rahman
All,
   I want to show the result of check_snmp in a certain way.  For example if
I am doing a nominal current check on Liebert ups, the snmp query will
return 506 as result.  However this actauly means 50.6 amp.  Is there any
way to control the output on check_snmp plugin.  I am aware of the -u
option but I am not sure if I can use this to achieve the desired result I
am looking for.  Thanks

-- 
Cordially,
Shadhin Rahman
--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
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 output

2009-04-22 Thread Marc Powell

On Apr 22, 2009, at 8:46 AM, shadih rahman wrote:

 All,
I want to show the result of check_snmp in a certain way.  For  
 example if I am doing a nominal current check on Liebert ups, the  
 snmp query will return 506 as result.  However this actauly means  
 50.6 amp.  Is there any way to control the output on check_snmp  
 plugin.  I am aware of the -u option but I am not sure if I can  
 use this to achieve the desired result I am looking for.  Thanks

There's no facility for munging the response data received via SNMP  
since it can be quite variable, ranging from numeric data to ip  
addresses to string data and many others. You can add a label (-l)  
(i.e. -l 'Amperage is' results in 'Amperage is OK- 506') and/or units  
(-u) (i.e. '-u amp' results in 'OK - 506 amp').

You could create a simple wrapper script that runs check_snmp, grabs  
it's output and return code, munges the output, and returns both back  
to nagios as the plugin would.

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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 output

2009-04-22 Thread Marc Powell
Please always respond on list --

On Apr 22, 2009, at 10:18 AM, shadih rahman wrote:

 Marc,
  Can you please give me some direction for the wrapper script.   
 Do you mean to capture the output and then do some type search and  
 replace on the string?

Yes, exactly. You'll also need to capture the check_snmp exit code and  
have your wrapper exit with that same code.

--
Marc


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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 memory leak

2009-04-13 Thread Mark Krenz

  Think your so smart, then why doesn't the Fedora quickinstall in the
Nagios manual just tell you to do that. ;-) 

  Doh!
 
On Sun, Apr 12, 2009 at 11:26:36PM GMT, jmose...@corp.xanadoo.com 
[jmose...@corp.xanadoo.com] said the following:
 
 The real question, though, is since you're using Cent OS, why not use the
 Nagios RPM's available via yum repository?  It makes upgrading and keeping
 track of dependencies a breeze.
 
 Not sure what the problem was, but I compiled Nagios 3.0.6 on a RHEL 3
 system using the exact options that were found in the RPM spec file.  I
 ended up with a nagios binary that was twice as large as the one that came
 in the RPM package and the version I compiled myself ran using more memory
 and processor resources than the RPM version.  The difference was probably
 the compiler flags I was using were not optimized for my (or any RHEL)
 system.
 
 Nine times out of ten, using yum rpm's will ultimately end up yielding
 better results when factoring in system performce, upgrades, etc - and save
 tons of time and headaches.  That's why you're using RHEL, right?  Yes, I
 still have to make RPM's via compilation of source RPM's when the yum
 repository version doesn't include the feature's I need.  For example, I
 have to roll my own Postfix because I need mysql support.
 
 
 James Moseley
 
 
 
 

  Mark Krenz
  m...@suso.org   
 To 
  04/12/2009 09:20  nagios-users@lists.sourceforge.net  
  AM cc 

Subject 
Re: [Nagios-users] check_snmp   
memory leak 






 
 
 
 
 
 Nevermind, figured it out.  I just tried recompiling without the
 --enable-embedded-perl option and that seems to have fixed it. Now the
 memory usage is staying at just a couple MB.
 
 Not sure why check_snmp was the only check that seemed to aggravate it
 though.
 


-- 
Mark S. Krenz
IT Director
Suso Technology Services, Inc.
http://suso.org/

--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
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 memory leak

2009-04-13 Thread Thomas Guyot-Sionnest
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 12/04/09 07:26 PM, jmose...@corp.xanadoo.com wrote:
 You could have also just disabled the embedded perl interpreter in the
 plugin itself.  By disabling the embedded perl function, your load  and
 memory usage will certainly be higher.
 
 The real question, though, is since you're using Cent OS, why not use the
 Nagios RPM's available via yum repository?  It makes upgrading and keeping
 track of dependencies a breeze.
 
 Not sure what the problem was, but I compiled Nagios 3.0.6 on a RHEL 3
 system using the exact options that were found in the RPM spec file.  I
 ended up with a nagios binary that was twice as large as the one that came
 in the RPM package and the version I compiled myself ran using more memory
 and processor resources than the RPM version.  The difference was probably
 the compiler flags I was using were not optimized for my (or any RHEL)
 system.

Are you sure your nagios binaries have been stripped?
 $ ls -lh /usr/src/nagios-3.0.1-cvs/base/nagios /usr/local/nagios/bin/nagios
 -rwxrwxr-- 1 nagios nagios 1.5M 2008-05-06 11:15 /usr/local/nagios/bin/nagios*
 -rwxr-xr-x 1 user   user   2.1M 2008-05-06 10:08 
 /usr/src/nagios-3.0.1-cvs/base/nagios*
 $ file /usr/src/nagios-3.0.1-cvs/base/nagios /usr/local/nagios/bin/nagios
 /usr/src/nagios-3.0.1-cvs/base/nagios: ELF 32-bit LSB executable, Intel 
 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
 /usr/local/nagios/bin/nagios:  ELF 32-bit LSB executable, Intel 
 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped

The memory and processor (system time) is directly related to the size
of the running process (which includes executable image size). Every
time Nagios executes a check it has to fork two or three times
(depending on configuration) and the kernel has to map/copy the
executable memory for the new processes. Performance degradation can
become even worse on systems that does not support copy-on-write for
forked processes as they perform a full copy of the process memory
during forks only to free it seconds later.

- --
Thomas
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJ42Sl6dZ+Kt5BchYRAkMpAKCZTMJLOmfelHxjRfwOcV3qfYyrIACeMwaC
8u+QBWjmHfSjOvcYg3pQhK4=
=pL0b
-END PGP SIGNATURE-

--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
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 memory leak

2009-04-12 Thread Mark Krenz

  I've run into some kind of memory leak in Nagios.  After removing
checks and services to narrow it down, I've determined that its the 
check_snmp command that is leaking memory.  With 33 hosts and almost
each one having 1 check that uses check_snmp in it, it leaks about 1MB
every couple checks.  It only takes a day for it to get to the point
where nagiops is using 200-300MB of RAM.  I'd say that's pretty bad.

Anyways, I've tried recompiling nagios and the nagios plugins and I've
upgraded all the packages on my system to make sure it wasn't something
there and then recompiled again.  Any ideas as to what this might be?

Here are my system specs for the nagios server:

System type: Xen virtual machine.
Architecture: x86_64
Physical memory: 512MB
Distribution: CentOS 5.3
gcc ver: gcc-4.1.2-44.el5

Nagios ver: 3.0.6
Nagios Configure settings: 
   configure --with-command-group=nagcmd --enable-embedded-perl

Nagios plugins ver: 1.4.13
Nagios Plugins Configure settings:  
   configure --with-nagios-user=nagios --with-nagios-group=nagios --with-mysql


I actually have another machine that I was running Nagios on recently
where I don't have this problem.  It has the same setup except its RHEL
5.2.


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
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 memory leak

2009-04-12 Thread Mark Krenz

Nevermind, figured it out.  I just tried recompiling without the
--enable-embedded-perl option and that seems to have fixed it. Now the
memory usage is staying at just a couple MB.

Not sure why check_snmp was the only check that seemed to aggravate it
though.

On Sun, Apr 12, 2009 at 09:21:03AM GMT, Mark Krenz [m...@suso.org] said the 
following:
 
   I've run into some kind of memory leak in Nagios.  After removing
 checks and services to narrow it down, I've determined that its the 
 check_snmp command that is leaking memory.  With 33 hosts and almost
 each one having 1 check that uses check_snmp in it, it leaks about 1MB
 every couple checks.  It only takes a day for it to get to the point
 where nagiops is using 200-300MB of RAM.  I'd say that's pretty bad.
 
 Anyways, I've tried recompiling nagios and the nagios plugins and I've
 upgraded all the packages on my system to make sure it wasn't something
 there and then recompiled again.  Any ideas as to what this might be?
 
 Here are my system specs for the nagios server:
 
 System type: Xen virtual machine.
 Architecture: x86_64
 Physical memory: 512MB
 Distribution: CentOS 5.3
 gcc ver: gcc-4.1.2-44.el5
 
 Nagios ver: 3.0.6
 Nagios Configure settings: 
configure --with-command-group=nagcmd --enable-embedded-perl
 
 Nagios plugins ver: 1.4.13
 Nagios Plugins Configure settings:  
configure --with-nagios-user=nagios --with-nagios-group=nagios --with-mysql
 
 
 I actually have another machine that I was running Nagios on recently
 where I don't have this problem.  It has the same setup except its RHEL
 5.2.
 
 
 --
 This SF.net email is sponsored by:
 High Quality Requirements in a Collaborative Environment.
 Download a free trial of Rational Requirements Composer Now!
 http://p.sf.net/sfu/www-ibm-com
 ___
 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
 


-- 
Mark S. Krenz
IT Director
Suso Technology Services, Inc.
http://suso.org/

--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
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


  1   2   >