Help: How to use check_snmp plugin to get the monitor APC PDU?

Lee Eric openlinuxsource at gmail.com
Tue Jul 12 11:59:32 CEST 2011


Thanks mate, actually I have made it work several days ago. It works well.

Example:

==========
define service {
	use			local-service
	hostgroup_name		pdu-16
	service_description	Load
	check_command		check_snmp!.1.3.6.1.4.1.318.1.1.12.2.3.1.1.2.1!120!140
}

define service {
	use			local-service
	hostgroup_name		pdu-32
	service_description	Load
	check_command		check_snmp!.1.3.6.1.4.1.318.1.1.12.2.3.1.1.2.1!260!300
}
==========
# 'check_snmp' command definition
define command{
        command_name    check_snmp
        command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$
-w $ARG2$ -c $ARG3$
        }
==========

I found out the specific OID by using tkmib to view Powenet MIB file.

Regards,

Eric

On Tue, Jul 12, 2011 at 5:32 PM, Jim Avery <jim at jimavery.me.uk> wrote:
> On 9 July 2011 15:02, Lee Eric <openlinuxsource at gmail.com> wrote:
>> Hi,
>>
>> Does anyone ever use check_snmp plugin to get the monitor APC PDU? I
>> know there are some plugins can do this but I'd like to use this one
>> to do more standard. I have downloaded the Powernet MIB file.
>
>
> An example of how I monitor output percent load is:
>
> check_command    check_snmp!-C <community> -o
> "UPS-MIB::upsOutputPercentLoad.1" -l \'Output Load\' -u \'%\' -w 10:80
> -c 5:90
>
> This is a 3-phase UPS, so I also have checks for the other phases:
>
> check_command    check_snmp!-C <community> -o
> "UPS-MIB::upsOutputPercentLoad.2" -l \'Output Load\' -u \'%\' -w 10:80
> -c 5:90
> and
> check_command    check_snmp!-C <community> -o
> "UPS-MIB::upsOutputPercentLoad.3" -l \'Output Load\' -u \'%\' -w 10:80
> -c 5:90
>
>
> The command definition looks like:
>
> define command{
>        command_name    check_snmp_ups
>        command_line    $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
>        }
>
>
>
> I'd be interested to see what other people do though, particularly as
> some of the metrics are *10 the expected value (presumably so they can
> be presented as integer rather than floating-point).  I've not been
> able to work out the best way of handling those myself yet.
>
> Cheers,
>
> Jim
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list