we have a Nagios server and we use it to monitor our hosts.
Now we have an old system that reports in a mysql database the status of some specific hosts. I'm wondering if there is a method (also if there is the possibility) to write a plugin that can fetch data from the database and populate Nagios monitor.
Let's image the database has a table like this: IP, HOSTNAME, STATUS, CPU_TEMP, HDD_TEMP
and I'd like to fetch these data into Nagios monitor. Is it possible?
There's no way to connect client through nagios daemon, I can only fetch data from this database.
Thanks!!! regards