Hello,
I m an absolute beginner in icinga2, monitoring, SNMP, MIB, OID...
We have a small network with simple needs and until now we didn't have to use pro features.
Now we are asked to start monitoring the network so:
I've just installed icinga2 (on centos) and it works
I did a simple monitoring to a PC "hostalive" and another one with agent and it s OK
Now i'd like to Monitor a switch
HP J4887A ProCurve Switch 4104GL
I started with this
https://docs.icinga.com/icinga…chapter/monitoring-basics
and some other pages on the net.
But until now, it isn't so clear for me.
I have the MIB file for this switch
I ran a snmp_check and it works
root@7bea7dc73572:/usr/lib/nagios/plugins# ./check_snmp -H x.x.10.10 -C monitor -o .1.3.6.1.2.1.1.2.0
Now i have to define a host, services and maybe a command file for monitoring this switch.
I'd like to start with a simple thing, and for example monitor the fans status.
I have created under /etc/icinga2/conf.d a file for this switch, and for now i have this inside it.
object Host "1-ext_800" {
address = "x.x.10.10"
check_command = "hostalive"
}
/*
object Service "fans" {
host_name = "1-ext_800"
??
}
*/
How do i have to write this command
./check_snmp -H x.x.10.10 -C monitor -o .1.3.6.1.2.1.1.2.0
in the object Service "fans" {}
(.1.3.6.1.2.1.1.2.0 is not the fan status,
i didn't find how to check the fan for now,
but if this works, I'll just have to find the right OID)
I'll be pleased if someone can help me or redirect me to a simple "tutorial".
Thanks
Sam