Port 1 Link Status
Posted: Thu Nov 21, 2013 6:13 am
I have configured Nagios to monitor my Cisco switch Port and uptime
When i check logs i get below message
EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;core-switch;Port 1 Link Status;1385032075
EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;core-switch;Uptime;1385032818
But when i check the web interface i get
UNKNOWN External command error: Unknown flag passed to -C: i
UNKNOWN External command error: Unknown flag passed to -C: s
Below is the data mentioned in switch.cfg file
Port config
define service{
use generic-service ; Inherit values from a template
host_name core-switch ; The name of the host the service is associated with
hostgroup_name switches ; The name of the host the service is associated with
service_description Port 1 Link Status
check_command check_snmp! -C public -o ifOperStatus.1 -r 1 -m RFC1213-MIB
}
Uptime config
define service{
use generic-service ; Inherit values from a template
host_name core-switch ; The name of the host the service is associated with
hostgroup_name switches ; The name of the host the service is associated with
service_description Uptime
check_command check_snmp! -C public -o sysUpTime.0
}
Regards
Search
When i check logs i get below message
EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;core-switch;Port 1 Link Status;1385032075
EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;core-switch;Uptime;1385032818
But when i check the web interface i get
UNKNOWN External command error: Unknown flag passed to -C: i
UNKNOWN External command error: Unknown flag passed to -C: s
Below is the data mentioned in switch.cfg file
Port config
define service{
use generic-service ; Inherit values from a template
host_name core-switch ; The name of the host the service is associated with
hostgroup_name switches ; The name of the host the service is associated with
service_description Port 1 Link Status
check_command check_snmp! -C public -o ifOperStatus.1 -r 1 -m RFC1213-MIB
}
Uptime config
define service{
use generic-service ; Inherit values from a template
host_name core-switch ; The name of the host the service is associated with
hostgroup_name switches ; The name of the host the service is associated with
service_description Uptime
check_command check_snmp! -C public -o sysUpTime.0
}
Regards
Search