Do it another way:
# 'check_snmp_arg_simple' command definition
define command{
command_name check_snmp_arg_simple
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o
$ARG2$ -c $ARG3$
}
# Service definition
define service{
use generic-service
host_name hostname
service_description Description
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 2
retry_check_interval 1
contact_groups g.mailALL
notification_interval 600
notification_period 24x7
notification_options c,r
check_command
check_snmp_arg_simple!public!ifOperStatus.1!1:1
}
Best regards, Tomas
On Thu, 10 Feb 2011, Michael DiMartino wrote:
> I need to monitor a a few interfaces for up and down status and receive
> email alerts when an
> interface goes from up to down. The classic web interface shows the downed
> interfaces as "OK" in the Status column, and in the Status Information
> column the downed interface are listed as "SNMP OK - 2 ". Which i assume
> the "2" stands for down.
>
> How do I get Icinga to show "Critical" in the STATUS column and if critical
> to send and email alert.
>
> I am a newbie to snmp monitoring and I am at a complete loss and very
> frustrated any help is greatly appreciated.
>
>> From my switch.cfg file
>
> define service{
> use generic-service ; Inherit values from a template
> host_name 3960-PGL-Toronto
> service_description Port 8 Link Status
> check_command check_snmp!-C public -o ifOperStatus.8 -r 1 -m RFC1213-MIB
> }
>
------------------------------------------------------------------------------
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
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/icinga-users