Config Syntax Issue : ncpa.cfg
Posted: Fri Sep 29, 2017 9:54 am
Hello,
I am trying to get a disk check running on the basic ncpa.cfg example. I can't get the syntax right or I need some direction on what to add on the client/ncpa (windows server) side.
How do you add a disk size check to the config file
example of memory usage:
define service {
host_name NCPA 2 Host
service_description Memory Usage
check_command check_ncpa!-t 'mytoken' -P 5693 -M memory/virtual -w 50 -c 80 -u G
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 60
notification_period 24x7
contacts nagiosadmin
register 1
}
This is what I came up for the disk check.... it errors out
define service {
host_name xxxxxx
service_description Disk Usage
check_command check_ncpa!-t xxxxxxxx -P 5693 -M api/disk/logical/c:|/used_percent -w 80 -c 90
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 60
notification_period 24x7
contacts nagiosadmin
register 1
}
I also tried adding other plugins to the file but would get couldn't access port. But I am confused as to where to add the plugins on the client side server. Do I add it to C:\Program Files (x86)\Nagios\NCPA\plugins ?
I am probably sounding all over the place but I just completed my first install of Nagios Core. I have one server reporting the 3 checks from the example and have a test url reporting.
I am trying to get a disk check running on the basic ncpa.cfg example. I can't get the syntax right or I need some direction on what to add on the client/ncpa (windows server) side.
How do you add a disk size check to the config file
example of memory usage:
define service {
host_name NCPA 2 Host
service_description Memory Usage
check_command check_ncpa!-t 'mytoken' -P 5693 -M memory/virtual -w 50 -c 80 -u G
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 60
notification_period 24x7
contacts nagiosadmin
register 1
}
This is what I came up for the disk check.... it errors out
define service {
host_name xxxxxx
service_description Disk Usage
check_command check_ncpa!-t xxxxxxxx -P 5693 -M api/disk/logical/c:|/used_percent -w 80 -c 90
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 60
notification_period 24x7
contacts nagiosadmin
register 1
}
I also tried adding other plugins to the file but would get couldn't access port. But I am confused as to where to add the plugins on the client side server. Do I add it to C:\Program Files (x86)\Nagios\NCPA\plugins ?
I am probably sounding all over the place but I just completed my first install of Nagios Core. I have one server reporting the 3 checks from the example and have a test url reporting.