Not Happy NRPE on Raspberry PI

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.
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: Not Happy NRPE on Raspberry PI

Post by kwhogster »

root@raspberrypi:/home/pi/Downloads# find / -name *nrpe*
/lib/systemd/system/nrpe.service
/usr/lib/tmpfiles.d/nrpe.conf
/usr/local/nagios/nrpe-2-15
/usr/local/nagios/nrpe-2-15/include/nrpe.h
/usr/local/nagios/nrpe-2-15/nrpe.spec.in
/usr/local/nagios/nrpe-2-15/package/solaris/pkg/nrpe
/usr/local/nagios/nrpe-2-15/package/solaris/pkg/nrpe.xml
/usr/local/nagios/nrpe-2-15/contrib/nrpe_check_control.c
/usr/local/nagios/nrpe-2-15/contrib/README.nrpe_check_control
/usr/local/nagios/nrpe-2-15/src/check_nrpe
/usr/local/nagios/nrpe-2-15/src/nrpe
/usr/local/nagios/nrpe-2-15/src/check_nrpe.c
/usr/local/nagios/nrpe-2-15/src/nrpe.c
/usr/local/nagios/nrpe-2-15/sample-config/nrpe.cfg.in
/usr/local/nagios/nrpe-2-15/sample-config/nrpe.cfg
/usr/local/nagios/nrpe-2-15/sample-config/nrpe.xinetd
/usr/local/nagios/nrpe-2-15/sample-config/nrpe.xinetd.in
/usr/local/nagios/nrpe-2-15/nrpe.spec
/usr/local/nagios/bin/nrpe
/usr/local/nagios/libexec/check_nrpe
/usr/local/nagios/etc/nrpe.cfg
/var/cache/apt/archives/nagios-nrpe-server_2.15-1_armhf.deb
/var/cache/apt/archives/nagios-nrpe-plugin_2.15-1_armhf.deb
/var/lib/dpkg/info/nagios-nrpe-server.list
/var/lib/dpkg/info/nagios-nrpe-plugin.postrm
/var/lib/dpkg/info/nagios-nrpe-server.postrm
/var/lib/dpkg/info/nagios-nrpe-plugin.list
root@raspberrypi:/home/pi/Downloads#

root@raspberrypi:/home/pi/Downloads# find / -name *.cfg
/home/pi/.config/lxpanel/launchtaskbar.cfg
/usr/lib/pypy-upstream/lib_pypy/cffi/_pycparser/_c_ast.cfg
/usr/lib/python2.7/dist-packages/distlib/_backport/sysconfig.cfg
/usr/lib/jvm/jdk-8-oracle-arm-vfp-hflt/jre/lib/arm/jvm.cfg
/usr/lib/python3/dist-packages/distlib/_backport/sysconfig.cfg
/usr/lib/libreoffice/share/config/soffice.cfg
/usr/share/doc/qstat/examples/contrib.cfg
/usr/share/monitoring-plugins/templates-basic/ssh.cfg
/usr/share/monitoring-plugins/templates-basic/ftp.cfg
/usr/share/monitoring-plugins/templates-basic/dhcp.cfg
/usr/share/monitoring-plugins/templates-basic/procs.cfg
/usr/share/monitoring-plugins/templates-basic/ping.cfg
/usr/share/monitoring-plugins/templates-basic/dummy.cfg
/usr/share/monitoring-plugins/templates-basic/http.cfg
/usr/share/monitoring-plugins/templates-basic/real.cfg
/usr/share/monitoring-plugins/templates-basic/load.cfg
/usr/share/monitoring-plugins/templates-basic/news.cfg
/usr/share/monitoring-plugins/templates-basic/tcp_udp.cfg
/usr/share/monitoring-plugins/templates-basic/apt.cfg
/usr/share/monitoring-plugins/templates-basic/telnet.cfg
/usr/share/monitoring-plugins/templates-basic/users.cfg
/usr/share/monitoring-plugins/templates-basic/disk.cfg
/usr/share/monitoring-plugins/templates-basic/ntp.cfg
/usr/share/monitoring-plugins/templates-basic/mail.cfg
/usr/share/monitoring-plugins/templates-standard/disk-smb.cfg
/usr/share/monitoring-plugins/templates-standard/breeze.cfg
/usr/share/monitoring-plugins/templates-standard/hppjd.cfg
/usr/share/monitoring-plugins/templates-standard/mailq.cfg
/usr/share/monitoring-plugins/templates-standard/fping.cfg
/usr/share/monitoring-plugins/templates-standard/nt.cfg
/usr/share/monitoring-plugins/templates-standard/flexlm.cfg
/usr/share/monitoring-plugins/templates-standard/ldap.cfg
/usr/share/monitoring-plugins/templates-standard/snmp.cfg
/usr/share/monitoring-plugins/templates-standard/radius.cfg
/usr/share/monitoring-plugins/templates-standard/mrtg.cfg
/usr/share/monitoring-plugins/templates-standard/dns.cfg
/usr/share/monitoring-plugins/templates-standard/mysql.cfg
/usr/share/monitoring-plugins/templates-standard/rpc-nfs.cfg
/usr/share/monitoring-plugins/templates-standard/ifstatus.cfg
/usr/share/monitoring-plugins/templates-standard/pgsql.cfg
/usr/share/monitoring-plugins/templates-standard/games.cfg
/usr/share/monitoring-plugins/templates-standard/netware.cfg
/usr/share/autoconf/autom4te.cfg
/usr/share/lxpanel/xkeyboardconfig/toggle.cfg
/usr/share/lxpanel/xkeyboardconfig/layouts.cfg
/usr/share/lxpanel/xkeyboardconfig/models.cfg
/usr/local/nagios/nrpe-2-15/sample-config/nrpe.cfg
/usr/local/nagios/etc/nrpe.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:tcp_udp.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:apt.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:dummy.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:ssh.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:flexlm.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:ftp.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:news.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:nt.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:pgsql.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:procs.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:snmp.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:mysql.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:breeze.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:radius.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:disk-smb.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:load.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:netware.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:disk.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:fping.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:http.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:dhcp.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:users.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:ping.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:mrtg.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:ifstatus.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:ntp.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:dns.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:mail.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:ldap.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:rpc-nfs.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:hppjd.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:games.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:real.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:telnet.cfg
/var/lib/ucf/cache/:etc:nagios-plugins:config:mailq.cfg
/opt/Wolfram/WolframEngine/10.0/SystemFiles/IncludeFiles/TeX/texmf/pdftex/config/pdftex.cfg
/etc/xdg/lxpanel/launchtaskbar.cfg
/etc/nagios-plugins/config/ssh.cfg
/etc/nagios-plugins/config/disk-smb.cfg
/etc/nagios-plugins/config/ftp.cfg
/etc/nagios-plugins/config/breeze.cfg
/etc/nagios-plugins/config/dhcp.cfg
/etc/nagios-plugins/config/procs.cfg
/etc/nagios-plugins/config/ping.cfg
/etc/nagios-plugins/config/hppjd.cfg
/etc/nagios-plugins/config/mailq.cfg
/etc/nagios-plugins/config/fping.cfg
/etc/nagios-plugins/config/dummy.cfg
/etc/nagios-plugins/config/http.cfg
/etc/nagios-plugins/config/nt.cfg
/etc/nagios-plugins/config/real.cfg
/etc/nagios-plugins/config/load.cfg
/etc/nagios-plugins/config/flexlm.cfg
/etc/nagios-plugins/config/news.cfg
/etc/nagios-plugins/config/ldap.cfg
/etc/nagios-plugins/config/snmp.cfg
/etc/nagios-plugins/config/radius.cfg
/etc/nagios-plugins/config/mrtg.cfg
/etc/nagios-plugins/config/dns.cfg
/etc/nagios-plugins/config/tcp_udp.cfg
/etc/nagios-plugins/config/apt.cfg
/etc/nagios-plugins/config/mysql.cfg
/etc/nagios-plugins/config/rpc-nfs.cfg
/etc/nagios-plugins/config/ifstatus.cfg
/etc/nagios-plugins/config/pgsql.cfg
/etc/nagios-plugins/config/telnet.cfg
/etc/nagios-plugins/config/games.cfg
/etc/nagios-plugins/config/check_nrpe.cfg
/etc/nagios-plugins/config/netware.cfg
/etc/nagios-plugins/config/users.cfg
/etc/nagios-plugins/config/disk.cfg
/etc/nagios-plugins/config/ntp.cfg
/etc/nagios-plugins/config/mail.cfg
/etc/vdpau_wrapper.cfg
/etc/dpkg/dpkg.cfg
/etc/timidity/freepats.cfg
/etc/timidity/timidity.cfg
/etc/perl/Net/libnet.cfg
/etc/wildmidi/wildmidi.cfg
/etc/qstat.cfg



thanks
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Not Happy NRPE on Raspberry PI

Post by Box293 »

kwhogster wrote:Now on Nagios server this works

root@tgcs017:/usr/local/nagios/etc/objects# /usr/lib/nagios/plugins/./check_nrpe -H 10.2.8.72
NRPE v2.15


On the Nagios Page I still get this warning No handler for command: check_mem
From the Nagios server please post the nagios definitions for:
  • The service using check_mem
    The host object the service is assigned to
    The command definition for nrpe that the service uses
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: Not Happy NRPE on Raspberry PI

Post by kwhogster »

Define Service

Code: Select all

###########################################################################
#
#    Define Check_nrpe for Check Mem on Linux
#
###########################################################################

define service {
        host_name                       RaspberryPi
        service_description             Check Memory Used Physical
        check_command                   check_nrpe!check_mem! -a '-w 80 -c 90'
        check_interval                  1
        servicegroups                   MemUsage
        use                             generic-service
}
define service {
        host_name                       TGCS018
        service_description             Check Memory Used Physical
        check_command                   check_nrpe!check_mem! -a '-w 80% -c 90%'
        check_interval                  1
        servicegroups                   MemUsage
        use                             generic-service
}
define service {
        host_name                       vMA
        service_description             Check Memory Used Physical
        check_command                   check_nrpe!check_mem! -a '-w 80 -c 90'
        check_interval                  1
        servicegroups                   MemUsage
        use                             generic-service
}
TGCS018 and vMA both work My PI does not

The Host define

Code: Select all

###############################################################################
#
#  Define Unix Hosts
#
###############################################################################

define host{
        use             linux-server
        host_name       RaspberryPi
        alias           Rasbian
        address         10.2.8.70
        hostgroups      linux-servers
        }
define host{
        use             linux-server
        host_name       vMA
        alias           VmWare
        address         10.2.8.7
        hostgroups      linux-servers
}
define host{
        use             linux-server
        host_name       TGCS018
        alias           Cent OS7
        address         10.2.8.74
        hostgroups      linux-servers
        }
Again TGCS018 and vMA both are working

The command

# Defining Nagios Command for NRPE Plugin
#
################################################################################

define command{
command_name check_nrpe
command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ $ARG2$ $ARG3$ $ARG4$
}

define command{
command_name check_nrpe_test
command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ $ARG2$ $ARG3$ $ARG4$ > /tmp/yourlog.txt
}

define command{
command_name check_mem
command_line $USER1$/check_mem.sh
}


check_nrpe_test I am working on another issue with that one
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Not Happy NRPE on Raspberry PI

Post by Box293 »

Box293 wrote:
kwhogster wrote:Now on Nagios server this works

root@tgcs017:/usr/local/nagios/etc/objects# /usr/lib/nagios/plugins/./check_nrpe -H 10.2.8.72
NRPE v2.15

On the Nagios Page I still get this warning No handler for command: check_mem

Code: Select all

define host{
        use             linux-server
        host_name       RaspberryPi
        alias           Rasbian
        address         10.2.8.70
        hostgroups      linux-servers
        }
Your nagios server is not pointing to the IP Address 10.2.8.72.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: Not Happy NRPE on Raspberry PI

Post by kwhogster »

Troy

OOOOPs that was it made the change to 10.2.8.72 brain fart I guess.

Now working

Now only have one function not working on Nagios

Now I can work on that one


Thanks every one for your help

This issue can be Locked now
Locked