chek_nrpe commands not present in nagflux DB
Posted: 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.p ... ntegration, 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
-----------------------------------------
commands.cfg
-----------------------------------------
localhost.cfg
-----------------------------------------
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
I'm troubleshooting this for a few days now, everything is working fine with nagios - grafana integration https://support.nagios.com/kb/article.p ... ntegration, 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