Page 1 of 1

adding plugin configuration

Posted: Mon Jan 25, 2021 9:40 am
by iqadmin
hello

on Nagios XI :

i need support on adding plugin to monitor status for the script for client machine.

script is working fine that I have checked on the client machine.

how to add the plugin to work on nagios xi and client, what configuration to be change , I think we can add on GUI on nagios XI.

[root@nagiosxi libexec]# ./check_nrpe -H 192.168.56.xxx -t 30 -c check_crm_v0_7
NRPE: Command 'check_crm_v0_7' not defined
You have new mail in /var/spool/mail/root

Re: adding plugin configuration

Posted: Tue Jan 26, 2021 12:16 pm
by vtrac
Hi iqadmin,
In order for check_nrpe to work with your new script "check_crm_v0_7", please add (define) the new script to the "nrpe.cfg" file on the remote host.

Code: Select all

/usr/local/nagios/etc/nrpe.cfg
Add your new script to the command section (see sample below) inside the "nrge.cfg" file:

Code: Select all

command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/hda1
command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
Once added, please restart your nrpe service on the remote server:

Code: Select all

systemctl restart nrpe.service
Here's an example of the service defined in XI:
T1.png
Regards,
Vinh

Re: adding plugin configuration

Posted: Wed Jan 27, 2021 3:34 pm
by iqadmin
[quote="vtrac"]

Thank you for your support

Re: adding plugin configuration

Posted: Thu Jan 28, 2021 11:07 am
by vtrac
Great!! .... I will close/lock the post/ticket ... :-)