On 09 Sep 2015, at 12:40, Dr Josef Karthauser
<[email protected]<mailto:[email protected]>> wrote:
Hi there,
I’m using check_snmp_inf to monitor some Cisco ports.
I’m expecting to be getting warning emails, but I’m getting problem ones.
Here’s an example:
***** Icinga *****
Notification Type: PROBLEM
Host: NSL.SW3 -> SW1 (nsl.sw3.gi1/0/12)
Address:
State: UP
Date/Time: 2015-09-09 10:58:54 +0100
Additional Info: GigabitEthernet1/0/12:UP (17.1Mbps/1.2Mbps/WARN
1.1/0.0/0.0/0.0):(1 UP): WARNING
It looks like I’m getting a warning from the check_snmp_info command; but I’m
not sure why icinga is reporting a PROBLEM.
“PROBLEM” is a notification type string. You’ll normally see this when your
notification script incorporates the value of the runtime macro
$notification.type$. Similar to “RECOVERY”.
“CRITICAL” is a state string, provided by a different runtime macro.
It is up to you how you’ll format the strings inside your notifications. If you
don’t like the notification type, don’t use it (but it obviously helps to
understand if the problem persists or it has recovered).
Kind regards,
Michael
Has anyone else seen this?
The debug log doesn’t show what the actual response was (this debug output
isn’t the failing call - it’s just one I’ve grabbed from the log):
[2015-09-09 11:35:38 +0100] debug/IdoMysqlConnection: Query: BEGIN
[2015-09-09 11:35:39 +0100] notice/Process: PID 5761
('/usr/local/libexec/nagios/check_snmp_int.pl' '-B' '-C’ 'community' '-H’
‘my.switch' '-M' '-Y' '-c' '0,600,10,10,0,0' '-d' '300' '-e' '-f' '-
k' '-n' 'GigabitEthernet1/0/12' '-q' '-r' '-t' '5' '-w' '300,400,1,1,0,0')
terminated with exit code 0
[2015-09-09 11:35:39 +0100] debug/DbEvents: add service check history for
'sw3.gi1/0/12'
[2015-09-09 11:35:39 +0100] debug/GraphiteWriter: Add to metric
list:'icinga.sw3_gi1_0_12.state 0 1441794939'.
[2015-09-09 11:35:39 +0100] debug/GraphiteWriter: Add to metric
list:'icinga.sw3_gi1_0_12.current_attempt 1 1441794939'.
[2015-09-09 11:35:39 +0100] debug/GraphiteWriter: Add to metric
list:'icinga.sw3_gi1_0_12.max_check_attempts 3 1441794939'.
[2015-09-09 11:35:39 +0100] debug/GraphiteWriter: Add to metric
list:'icinga.nsl_gi1_0_12.state_type 1 1441794939'.
[2015-09-09 11:35:39 +0100] debug/GraphiteWriter: Add to metric
list:'icinga.nsl_gi1_0_12.reachable 1 1441794939'.
[2015-09-09 11:35:39 +0100] debug/GraphiteWriter: Add to metric
list:'icinga.nsl_gi1_0_12.downtime_depth 0 1441794939'.
[2015-09-09 11:35:39 +0100] debug/GraphiteWriter: Add to metric
list:'icinga.nsl_gi1_0_12.latency 0 1441794939'.
[2015-09-09 11:35:39 +0100] debug/GraphiteWriter: Add to metric
list:'icinga.nsl_gi1_0_12.execution_time 0.29910588264465332 1441794939'.
[2015-09-09 11:35:39 +0100] debug/GraphiteWriter: Add to metric
list:'icinga.sw3_gi1_0_12.GigabitEthernet1_0_12_in_bps 1491578 1441794939'.
[2015-09-09 11:35:39 +0100] debug/GraphiteWriter: Add to metric
list:'icinga.sw3_gi1_0_12.GigabitEthernet1_0_12_in_bps_warn 300000000
1441794939'.
[2015-09-09 11:35:39 +0100] debug/GraphiteWriter: Add to metric
list:'icinga.sw3_gi1_0_12.GigabitEthernet1_0_12_in_bps_max 100000000
1441794939'.
[2015-09-09 11:35:39 +0100] debug/GraphiteWriter: Add to metric
list:'icinga.sw3_gi1_0_12.GigabitEthernet1_0_12_out_bps 500919 1441794939'.
[2015-09-09 11:35:39 +0100] debug/GraphiteWriter: Add to metric
list:'icinga.sw3_gi1_0_12.GigabitEthernet1_0_12_out_bps_crit 600000000
1441794939'.
[2015-09-09 11:35:39 +0100] debug/GraphiteWriter: Add to metric
list:'icinga.sw3_gi1_0_12.GigabitEthernet1_0_12_out_bps_warn 400000000
1441794939'.
[2015-09-09 11:35:39 +0100] debug/GraphiteWriter: Add to metric
list:'icinga.sw3_gi1_0_12.GigabitEthernet1_0_12_out_bps_max 100000000
1441794939'.
[2015-09-09 11:35:39 +0100] debug/GraphiteWriter: Add to metric
list:'icinga.sw3_gi1_0_12.GigabitEthernet1_0_12_in_error 2094 1441794939'.
[2015-09-09 11:35:39 +0100] debug/GraphiteWriter: Add to metric
list:'icinga.sw3_gi1_0_12.GigabitEthernet1_0_12_in_discard 0 1441794939'.
[2015-09-09 11:35:39 +0100] debug/GraphiteWriter: Add to metric
list:'icinga.sw3_gi1_0_12.GigabitEthernet1_0_12_out_error 0 1441794939'.
[2015-09-09 11:35:39 +0100] debug/GraphiteWriter: Add to metric
list:'icinga.sw3_gi1_0_12.GigabitEthernet1_0_12_out_discard 0 1441794939’.
Does anyone have any ideas please?
Thanks,
Joe
_______________________________________________
icinga-users mailing list
[email protected]<mailto:[email protected]>
https://lists.icinga.org/mailman/listinfo/icinga-users
--
Michael Friedrich, DI (FH)
Senior Developer
NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg
Tel: +49 911 92885-0 | Fax: +49 911 92885-77
GF: Julian Hein, Bernd Erk | AG Nuernberg HRB18461
http://www.netways.de | [email protected]
** OSBConf 2015 - September - osbconf.org **
** OSMC 2015 - November - netways.de/osmc **
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users