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

chek_nrpe commands not present in nagflux DB

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

chek_nrpe commands not present in nagflux DB

Postby andreigro » Fri Mar 25, 2022 7:38 am

Hi everyone,

I'm troubleshooting this for a few days now, everything is working fine with nagios - grafana integration https://support.nagios.com/kb/article.php?id=802#Nagios_Web_Integration, except check_nrpe commands.
So basically I'm running a 'custom_service' on localhost, Nagios reports the service with green but the metrics doesn't get to Nagflux to be further displayed within Grafana:
E.g:

nrpe.cfg
Code: Select all
command[check_systemd-service]=sudo /usr/local/nagios/libexec/check_init_service.sh $ARG1$

-----------------------------------------
commands.cfg
Code: Select all
define command {
      command_name     check_nrpe
      command_line     $USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$
}


-----------------------------------------
localhost.cfg
Code: Select all
define service {
    host_name               localhost
    service_description     Local Service
    check_command           check_nrpe!check_systemd-service!-a 'custom_service'!!!!!!
    notifications_enabled   0
    register                1
    use                     local-service
}

-----------------------------------------
But this is not getting to nagflux db

>Using database nagflux
> show series
key
---
metrics,command=check-host-alive,crit-fill=none,host=localhost,performanceLabel=pl,service=hostcheck,unit=%,warn-fill=none
metrics,command=check-host-alive,crit-fill=none,host=localhost,performanceLabel=rta,service=hostcheck,unit=ms,warn-fill=none
metrics,command=check_http,host=localhost,performanceLabel=size,service=HTTP,unit=B
metrics,command=check_http,host=localhost,performanceLabel=time,service=HTTP,unit=s
metrics,command=check_local_disk,crit-fill=none,host=localhost,performanceLabel=/,service=Root\ Partition,unit=MiB,warn-fill=none
metrics,command=check_local_load,crit-fill=none,host=localhost,performanceLabel=load1,service=Current\ Load,warn-fill=none
metrics,command=check_local_load,crit-fill=none,host=localhost,performanceLabel=load15,service=Current\ Load,warn-fill=none
metrics,command=check_local_load,crit-fill=none,host=localhost,performanceLabel=load5,service=Current\ Load,warn-fill=none
metrics,command=check_local_procs,crit-fill=none,host=localhost,performanceLabel=procs,service=Total\ Processes,warn-fill=none
metrics,command=check_local_swap,crit-fill=none,host=localhost,performanceLabel=swap,service=Swap\ Usage,unit=MB,warn-fill=none
metrics,command=check_local_users,crit-fill=none,host=localhost,performanceLabel=users,service=Current\ Users,warn-fill=none
metrics,command=check_ping,crit-fill=none,host=localhost,performanceLabel=pl,service=PING,unit=%,warn-fill=none
metrics,command=check_ping,crit-fill=none,host=localhost,performanceLabel=rta,service=PING,unit=ms,warn-fill=none
metrics,command=check_ssh,host=localhost,performanceLabel=time,service=SSH,unit=s


What am I missing? Appreciate everyone's time and support on this.

Thank you,

Andrei
andreigro
 
Posts: 1
Joined: Fri Mar 25, 2022 7:23 am

Return to Community Support

Who is online

Users browsing this forum: No registered users and 14 guests