Page 1 of 1

NSClient 0.4.x compatability on Nagios core 3.5.x

Posted: Tue Feb 06, 2018 11:44 am
by rohithroki
Mod edit: Split topic from https://support.nagios.com/forum/viewto ... 5&start=10

Hi npolovenko,

Thanks for replying.

I have checked and gone through the link https://bernhardhoerl.com/2017/09/26/cu ... mote-ping/ and installed the remote ping check plugin and it's working fine.

[root@nagios_test libexec]# ./check_ncpa.py -H <hostname> -t <mytoken> -M /plugins/check_ping.exe
Ping OK - Packet Loss = 0%, RTA = 0ms|'Packet Loss'=0%;;;; 'RTA'=0ms;;;;

How to monitor the task scheduler monitoring (if any task failed)

Please help me out the argument to monitor the failed task.

Cheers,
Simbu

Re: NSClient 0.4.x compatability on Nagios core 3.5.x

Posted: Tue Feb 06, 2018 5:56 pm
by tgriep
Sorry, the NCPA agent does not include a way to check scheduled tasks.

Re: NSClient 0.4.x compatability on Nagios core 3.5.x

Posted: Wed Feb 07, 2018 5:07 am
by rohithroki
Hello Tgrief,

Thanks for the reply.

Can we monitor the existing plugins used by NRPE for NCPA agent?

For example,

I have copied the check_disk plugin and I moved to under /usr/local/ncpa/plugins and set the permissions as nagios user.I executed the plugin via NCPA and the ouptut shown.

/code [root@nagios_test libexec]# ./check_ncpa.py -H 10.211.30.81 -t 3RuC3sR3PuS -M '/plugins/check_disk' -a '-w 20 -c 40 /'
DISK OK - free space: / 4416 MB (40% inode=69%); /dev/shm 938 MB (100% inode=99%); /boot 335 MB (74% inode=99%);| /=6525MB;11513;11493;0;11533 /dev/shm=0MB;918;898;0;938 /boot=116MB;456;436;0;476

It showing overall partitions comes under / directory.

When I trying to execute /boot separately .I am getting the below error.

/code [root@nagios_test libexec]# ./check_ncpa.py -H 10.211.30.81 -t 3RuC3sR3PuS -M '/plugins/check_disk' -a '-w 20 -c 40 /boot'
DISK CRITICAL - boot is not accessible: No such file or directory.

And also I tried to execute check_ping plugin via NCPA and getting the error.

Please find the attached error screenshot.

cheers,
Simbu

Re: NSClient 0.4.x compatability on Nagios core 3.5.x

Posted: Wed Feb 07, 2018 9:55 am
by tgriep
The error from checking the /boot partition might be a a configuration setting in the ncpa.cfg file.
The NCPA agent has a built in disk check you can use instead of using a plugin.
Here is an example command.

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py 10.211.30.81 -t 3RuC3sR3PuS  -P 5693 -M 'disk/logical/|boot/used' -w 70 -c 90
The check_ping is missing the requires options and that is causing the error.

Code: Select all

check_ping -H <host_address> -w <wrta>,<wpl>% -c <crta>,<cpl>%