We've moved to a new support system!

The Nagios Answer Hub is a place where you can get help with technical questions from our experts. There, you can quickly open tickets and join discussion boards.

Request Nagios Answer Hub access here: https://info.nagios.com/answer-hub-access-new-users

After completing the access form, you will be given access to a portal where new tickets can be created. We will keep the old customer forum sections and ticket system available for current cases to be resolved.

Go to the Answer Hub

How can I add plugin to Nagios Core 4.X

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

How can I add plugin to Nagios Core 4.X

Postby PhumeleleSJose96 » Mon Jun 13, 2022 6:57 am

I would like to ask, how can I add plugin (below) to the nagios core 4.X
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 echatrandom:~# /home/onedata/Downloads/check_hping 188.123.99.171 200 500 10201
OK: Average response time echatspin 10 ms; packet loss 0%
Thank you for your help!
Last edited by PhumeleleSJose96 on Thu Jul 14, 2022 12:59 am, edited 1 time in total.
PhumeleleSJose96
 
Posts: 11
Joined: Mon Feb 14, 2022 5:39 am

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

Postby asafe11 » Tue Jun 21, 2022 5:43 am

your command name is check-ping-on-port
and in the service template you call check_hping
which is not defind anywhere.
asafe11
 
Posts: 1
Joined: Tue Jun 21, 2022 5:27 am


Return to Community Support

Who is online

Users browsing this forum: No registered users and 12 guests