Is it possible to run NagiosXi built-in commands/plugins on remote hosts with NCPA agents? I'm trying but giving below error.
Service Definition:
Code: Select all
define service {
host_name host
service_description Process Count
check_command check_procs!550!1000
max_check_attempts 2
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 15
notification_period 24x7
notifications_enabled 1
contact_groups Linux-Alerts
register 1
}
Code: Select all
check_procs -w <range> -c <range> [-m metric] [-s state] [-p ppid] [-j jid]
[-u user] [-r rss] [-z vsz] [-P %cpu] [-a argument-array]
[-C command] [-X process_to_exclude] [-k] [-t timeout] [-v]
Code: Select all
define command {
command_name check_procs
command_line $USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
}