adding plugin configuration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
iqadmin
Posts: 12
Joined: Tue Oct 06, 2020 2:01 am

adding plugin configuration

Post 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
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: adding plugin configuration

Post 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
You do not have the required permissions to view the files attached to this post.
iqadmin
Posts: 12
Joined: Tue Oct 06, 2020 2:01 am

Re: adding plugin configuration

Post by iqadmin »

[quote="vtrac"]

Thank you for your support
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: adding plugin configuration

Post by vtrac »

Great!! .... I will close/lock the post/ticket ... :-)
Locked