Centralize Command Definitions?
Posted: Thu Oct 04, 2012 10:23 am
Hi,
Getting acquainted with Nagios. Have NagiosQL and NRPE installed. Everything works fine, except one condition that has been a bit irritating. If I needed to change what constitutes a 'warning' or 'critical' state for a check on a remote system, I would have to remote into that system and change the command definition in nrpe.cfg. An example being check_mem with -w 25 -c 15 arguments so it'll warn at 25% free mem usage and 15% usage, respectively. Obviously this can get rather tedious.
So, is there a way to change this behavior to become more centralized through the Nagios server so I can change it through something like NagiosQL, that way I don't have to remote into every system I want to change commands on and just have the Nagios server react differently to the information it receives? Such as the command just sending the data through NRPE to Nagios server and the Nagios server just takes that and determines the appropriate state? Thanks a mil.
Getting acquainted with Nagios. Have NagiosQL and NRPE installed. Everything works fine, except one condition that has been a bit irritating. If I needed to change what constitutes a 'warning' or 'critical' state for a check on a remote system, I would have to remote into that system and change the command definition in nrpe.cfg. An example being check_mem with -w 25 -c 15 arguments so it'll warn at 25% free mem usage and 15% usage, respectively. Obviously this can get rather tedious.
So, is there a way to change this behavior to become more centralized through the Nagios server so I can change it through something like NagiosQL, that way I don't have to remote into every system I want to change commands on and just have the Nagios server react differently to the information it receives? Such as the command just sending the data through NRPE to Nagios server and the Nagios server just takes that and determines the appropriate state? Thanks a mil.