New Nagios install - Adding 15 (60 ports) switches
Posted: Fri Oct 16, 2020 7:10 am
Hello,
I've been browsing the web a lot in the last 3 days looking for some ways to modify my switch.cfg file properly. I only got the same info over and over again about how to setup the Host definition and service definition.
Good things is now I can monitor my Up time, Ping BUT I would like to use SNMP to monitor all the switches ports. With a total of 900 ports to monitor I was wondering if I must setup this block of code 900 times !! and only changes the ifOperStatus.x:
#define service {
#
# use generic-service ; Inherit values from a template
# host_name linksys-srw224p
# service_description Port 1 Link Status
# check_command check_snmp!-C public -o ifOperStatus.1 -r 1 -m RFC1213-MIB
#}
I will also wish to monitor traffic using MRTG but I face the same issue, is there a way to automate/script the check so I don't need to create so much entry in my fswitch.cfg file?
How do you guys work outthere?
Best regards,
I've been browsing the web a lot in the last 3 days looking for some ways to modify my switch.cfg file properly. I only got the same info over and over again about how to setup the Host definition and service definition.
Good things is now I can monitor my Up time, Ping BUT I would like to use SNMP to monitor all the switches ports. With a total of 900 ports to monitor I was wondering if I must setup this block of code 900 times !! and only changes the ifOperStatus.x:
#define service {
#
# use generic-service ; Inherit values from a template
# host_name linksys-srw224p
# service_description Port 1 Link Status
# check_command check_snmp!-C public -o ifOperStatus.1 -r 1 -m RFC1213-MIB
#}
I will also wish to monitor traffic using MRTG but I face the same issue, is there a way to automate/script the check so I don't need to create so much entry in my fswitch.cfg file?
How do you guys work outthere?
Best regards,