z

Commercial Support Clients: Clients with support contracts can get escalated support assistance by visiting Nagios Answer Hub. These forums are for community support services. Although we at Nagios try our best to help out on the forums here, we always give priority support to our support clients.

How can I add plugin to Nagios Core 4.X

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.

How can I add plugin to Nagios Core 4.X

Postby AkinBredailik » Fri Aug 05, 2022 5:54 am

I would like to ask, how can I add plugin (below) to the nagios core 4.X

http://exchange.nagios.org/directory/Pl ... ng/details
I always got an error:

Error: Service check command 'check_hping' specified in service 'HPING3' for host 'cam_chodba' not defined anywhere
I have defined command in /usr/local/nagios/etc/objects/commands.cfg :

define command{
command_name check-ping-on-port
command_line /usr/local/nagios/libexec/check_hping $HOSTADDRESS$ 100 500 $ARG1$
}
and host and service in /usr/local/nagios/etc/objects/switch.cfg :

define host{
use generic-switch
host_name cam_chodba
alias cam_chodba
address 1.2.3.4
check_command check-ping-on-port
hostgroups switches
}

define service{
use generic-service
host_name cam_chodba
service_description HPING3
check_command check_hping
}
when I'm trying run just a command, its running -->

root@onedata-desktop:~# /home/onedata/Downloads/check_hping 188.123.99.171 200 500 10201
OK: Average response time omegle shagle voojio 10 ms; packet loss 0%
Thank you for your help!
Last edited by AkinBredailik on Wed Oct 05, 2022 3:36 am, edited 1 time in total.
AkinBredailik
 
Posts: 3
Joined: Fri Jul 15, 2022 6:17 am

Re: How can I add plugin to Nagios Core 4.X

Postby gormank » Fri Aug 05, 2022 3:19 pm

You named the command check-ping-on-port, not check_hping.
gormank
 
Posts: 1079
Joined: Tue Dec 02, 2014 12:00 pm


Return to Open Source Nagios Projects

Who is online

Users browsing this forum: No registered users and 21 guests