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
NSClient 0.4.x compatability on Nagios core 3.5.x
-
- Posts: 138
- Joined: Mon Nov 30, 2015 6:12 am
NSClient 0.4.x compatability on Nagios core 3.5.x
Last edited by npolovenko on Tue Feb 06, 2018 12:32 pm, edited 1 time in total.
Reason: Split topic from https://support.nagios.com/forum/viewtopic.php?f=7&t=47215&start=10
Reason: Split topic from https://support.nagios.com/forum/viewtopic.php?f=7&t=47215&start=10
Re: NSClient 0.4.x compatability on Nagios core 3.5.x
Sorry, the NCPA agent does not include a way to check scheduled tasks.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 138
- Joined: Mon Nov 30, 2015 6:12 am
Re: NSClient 0.4.x compatability on Nagios core 3.5.x
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
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
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.
The check_ping is missing the requires options and that is causing the error.
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
Code: Select all
check_ping -H <host_address> -w <wrta>,<wpl>% -c <crta>,<cpl>%
Be sure to check out our Knowledgebase for helpful articles and solutions!