check_mrtgtraf: Unable to open MRTG log file and Port 1 Link
Posted: Wed Mar 27, 2019 2:04 pm
Hi,
I want to monitoring switch with nagios but why nagios status information for Port 1 Bandwidth Usage>>> : check_mrtgtraf: Unable to open MRTG log file and Port 1 Link Status >>>> : External command error: MIB search path:
my switch.cfg file is :
define host {
use generic-switch ; Inherit default values from a template
host_name SO-1 ; The name we're giving to this switch
alias Sytem Room 1 ; A longer name associated with the switch
address 192.168.11.201 ; IP address of the switch
hostgroups switches ; Host groups this switch is associated with
}
# Monitor bandwidth via MRTG logs
define service {
use generic-service ; Inherit values from a template
host_name SO-1
service_description Port 1 Bandwidth Usage
check_command check_local_mrtgtraf!/var/lib/mrtg/192.168.1.253_1.log!AVG!1000000,1000000!5000000,5000000!10
}
define service {
use generic-service ; Inherit values from a template
host_name SO-1
service_description Port 1 Link Status
check_command check_snmp!-C public -o ifOperStatus.1 -r 1 -m RFC1213-MIB
}
I want to monitoring switch with nagios but why nagios status information for Port 1 Bandwidth Usage>>> : check_mrtgtraf: Unable to open MRTG log file and Port 1 Link Status >>>> : External command error: MIB search path:
my switch.cfg file is :
define host {
use generic-switch ; Inherit default values from a template
host_name SO-1 ; The name we're giving to this switch
alias Sytem Room 1 ; A longer name associated with the switch
address 192.168.11.201 ; IP address of the switch
hostgroups switches ; Host groups this switch is associated with
}
# Monitor bandwidth via MRTG logs
define service {
use generic-service ; Inherit values from a template
host_name SO-1
service_description Port 1 Bandwidth Usage
check_command check_local_mrtgtraf!/var/lib/mrtg/192.168.1.253_1.log!AVG!1000000,1000000!5000000,5000000!10
}
define service {
use generic-service ; Inherit values from a template
host_name SO-1
service_description Port 1 Link Status
check_command check_snmp!-C public -o ifOperStatus.1 -r 1 -m RFC1213-MIB
}