Hi, I am new in icinga2.
I am trying to monitoring the router. For this, I have added in :
nano /etc/icinga2/conf.d/hosts.conf
object Host “Router” {
address = “myRouterIP”
check_command = “hostalive”
}
The output of icinga ui is : PING OK - Packet loss = 0%, RTA = 0.45 ms
But I want to monitor all the necessary information of router using this( Connectivity (check_ping) Websites (check_http) Disk usage (check_disk) CPU usage (check_load) Memory usage (check_swap) Uptime (check_uptime) File size (check_file_size.sh) File age (check_file_age) File shares (check_file_size) Log files (check_log) Non-standard ports (check_port) Mail (check_smtp, check_mailq,more) DNS (check_dns) Certificate expirations (check_http) Backup software (check_proc) AV software (check_proc) Check on printer (check_snmp) ).
I have heard about all but I don’t know how to use this for getting info of router.
Routers and other network devices usually allow monitoring via SNMP, ssh or telnet.
If your router is Linux based, you can use service checks like on a “normal” host.
Be aware that excessive checks can consume many ressources on your router
and decrease performance.
yes, But I don’t know how to monitoring via SNMP.
I just found that to monitor router:
nano /etc/icinga2/conf.d/hosts.conf
object Host “Router” {
address = “myRouterIP”
check_command = “hostalive”
}
But it’s not giving what I actually want.
you should try the centreon plugin suite and create custom commands at commands.conf. This plugin suite has very great addons for routers etc.: https://github.com/centreon/centreon-plugins