administratively up but operationally not up.
=cut
+#
+# $Id: check_interfaces,v 1.5 2000/11/29 17:12:49 sljohnson Exp $
# Register the routine with the plugin registry
$PLUGINS{'interfaces'} = \&check_interfaces;
my ($host ) = @_;
my ($color, $summary, $message ) = ( "green", "", "" );
my $snmp_session;
- my ($snmp_community) = $HOSTS{$host}->{'snmp_community'} || 'public';
+ my ($snmp_community) = $HOSTS{$host}->{'snmp_community'} ||
+ $HOSTS_DEFAULTS{'snmp_community'} ||
+ 'public';
$snmp_session = SNMP_Session->open ($host, $snmp_community, 161);
critical (red) status is reported
=cut
+#
+# $Id: check_snmp,v 1.5 2000/11/29 17:12:49 sljohnson Exp $
# Register the routine with the plugin registry
$PLUGINS{'snmp'} = \&check_snmp;
my ($host ) = @_;
my ($color, $summary, $message ) = ( "green", "", "" );
my $snmp_session;
- my ($community) = $HOSTS{$host}->{'snmp_community'} || 'public';
- my ($expect) = $HOSTS{$host}->{'expect_oid'};
+
+ # Find the community name to use
+ my ($community) = $HOSTS{$host}->{'snmp_community'} ||
+ $HOSTS_DEFAULTS{'snmp_community'} ||
+ 'public';
+
+ # Find an expect oid to find
+ my ($expect) = $HOSTS{$host}->{'expect_oid'} ||
+ $HOSTS_DEFAULTS{'expect_oid'};
$snmp_session = SNMP_Session->open ($host, $community, 161);