Monitoring number of hosts and services in Centreon
Hello,
Do you know if it is possible to monitor the number of hosts and services monitored by Centreon?
Several times while modifying services I made a mistake and services were deleted, if I'm not careful I might not even realize it. I would therefore like to have a graph on this information and be alerted below a certain threshold.
Thanks
Page 1 / 1
hello
try this menu :
it’s not “monitoring” in the sense where only administrator can see this view, and it’s not like a ressource, but you get all graph you need to see how many check, host, how long it takes to run them, etc…
I don’t know if there are check for that in the plugin pack
and also, it is “per poller”, there is no global stats in this view
Hello,
You can use the Sql-Statement service template from the the MySQL/MariaDB Plugin Pack with the following statement:
for host: SELECT count(*) FROM centreon.host WHERE host_activate='1' AND host_register='1'
for services: SELECT count(*) FROM centreon.service WHERE service_activate='1' AND service_register='1'
If you don’t a licence, use the sql mode from the MySQL/MariaDB plugin and fill the sql-statement option with the previous requests.
Regards,
itoussies.
Hello,
Thanks for your feedback, I'll try that.
Guillaume
Hello,
You can use the Sql-Statement service template from the the MySQL/MariaDB Plugin Pack with the following statement:
for host: SELECT count(*) FROM centreon.host WHERE host_activate='1' AND host_register='1'
for services: SELECT count(*) FROM centreon.service WHERE service_activate='1' AND service_register='1'
If you don’t a licence, use the sql mode from the MySQL/MariaDB plugin and fill the sql-statement option with the previous requests.
Regards,
itoussies.
Hello Itoussies, it’s work fine for Host but for Service the value isn’t correct.
I use the plugin “centreon_plugins.pl --plugin=database::mysql::plugin”