How to add Manually command in Nagiosxi
Posted: Thu Feb 25, 2016 7:17 am
Hi,
i have below customized command, when i add this command manually in /usr/local/nagios/etc/commands.cfg, After i restart nagios service the command will disappearing. Could you please let me know where i should add this command..?
define command {
command_name check_ws_jmxTC88
command_line $USER1$/check_jmx -U service:jmx:rmi:///jndi/rmi://x.x.x.x:9192/jmxrmi -O "java.lang:type=Threading" -A ThreadCount
}
Thanks,
Sudhakar Aguri
i have below customized command, when i add this command manually in /usr/local/nagios/etc/commands.cfg, After i restart nagios service the command will disappearing. Could you please let me know where i should add this command..?
define command {
command_name check_ws_jmxTC88
command_line $USER1$/check_jmx -U service:jmx:rmi:///jndi/rmi://x.x.x.x:9192/jmxrmi -O "java.lang:type=Threading" -A ThreadCount
}
Thanks,
Sudhakar Aguri