Nagios 4.0.8 Web Interface Not Working

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.
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Nagios 4.0.8 Web Interface Not Working

Post by rlinux57 »

nagios server plugins path: /usr/local/nagios/libexec
remote server plugins path: /usr/local/nagios/libexec/

nano /etc/sudoers

Defaults:nagios !requiretty
nagios ALL= NOPASSWD:/usr/sbin/exim
%nagios ALL=(ALL) NOPASSWD: ALL
nagios ALL=(ALL) NOPASSWD: /usr/local/nagios/libexec/


nano /usr/local/nagios/etc/resource.cfg
# Sets $USER1$ to be the path to the plugins
$USER1$=/usr/local/nagios/libexec
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Nagios 4.0.8 Web Interface Not Working

Post by rhassing »

Could you please try the command on the command line you use to check the remote load?
This should be something with NRPE.
Please provide the NRPE config file as well.
Rob Hassing
Image
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Nagios 4.0.8 Web Interface Not Working

Post by rhassing »

Could you please try the command on the command line you use to check the remote load?
This should be something with NRPE.
Please provide the NRPE config file as well.
Rob Hassing
Image
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios 4.0.8 Web Interface Not Working

Post by tgriep »

Could you fun this command on the Nagios server and post back the results?

Code: Select all

ll /usr/local/nagios/libexec
Could you attach to this post the service check cfg files for the services that are failing?
Be sure to check out our Knowledgebase for helpful articles and solutions!
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Nagios 4.0.8 Web Interface Not Working

Post by rlinux57 »

I have attached the nrpe.cfg of remote host alongside this post.

Kindly tell me how can i check the remote host from nagios through manual command ?

ll /usr/local/nagios/libexec/
total 4248
-rwxr-xr-x. 1 nagios nagios 139388 Feb 9 20:23 check_apt
-rwxr-xr-x. 1 nagios nagios 2239 Feb 9 20:23 check_breeze
-rwxr-xr-x. 1 nagios nagios 140941 Feb 9 20:23 check_by_ssh
lrwxrwxrwx. 1 nagios nagios 9 Feb 9 20:23 check_clamd -> check_tcp
-rwxr-xr-x. 1 nagios nagios 104705 Feb 9 20:23 check_cluster
-r-xr-xr-x. 1 nagios nagios 135907 Feb 9 20:23 check_dhcp
-rwxr-xr-x. 1 nagios nagios 152963 Feb 9 20:23 check_disk
-rwxr-xr-x. 1 nagios nagios 9286 Feb 9 20:23 check_disk_smb
-rwxr-xr-x. 1 nagios nagios 66677 Feb 9 20:23 check_dummy
-rwxr-xr-x. 1 nagios nagios 3346 Feb 9 20:23 check_file_age
-rwxr-xr-x. 1 nagios nagios 6312 Feb 9 20:23 check_flexlm
lrwxrwxrwx. 1 nagios nagios 9 Feb 9 20:23 check_ftp -> check_tcp
-rwxr-xr-x. 1 nagios nagios 229174 Feb 9 20:23 check_http
-r-xr-xr-x. 1 nagios nagios 142468 Feb 9 20:23 check_icmp
-rwxr-xr-x. 1 nagios nagios 111191 Feb 9 20:23 check_ide_smart
-rwxr-xr-x. 1 nagios nagios 15120 Feb 9 20:23 check_ifoperstatus
-rwxr-xr-x. 1 nagios nagios 12595 Feb 9 20:23 check_ifstatus
lrwxrwxrwx. 1 nagios nagios 9 Feb 9 20:23 check_imap -> check_tcp
-rwxr-xr-x. 1 nagios nagios 6884 Feb 9 20:23 check_ircd
-rwxr-xr-x. 1 nagios nagios 123104 Feb 9 20:23 check_load
-rwxr-xr-x. 1 nagios nagios 5987 Feb 9 20:23 check_log
-rwxr-xr-x. 1 nagios nagios 21477 Feb 9 20:23 check_mailq
-rwxr-xr-x. 1 nagios nagios 110489 Feb 9 20:23 check_mrtg
-rwxr-xr-x. 1 nagios nagios 110330 Feb 9 20:23 check_mrtgtraf
-rwxr-xr-x. 1 nagios nagios 122820 Feb 9 20:23 check_nagios
lrwxrwxrwx. 1 nagios nagios 9 Feb 9 20:23 check_nntp -> check_tcp
-rwxr-xr-x 1 nagios nagios 22256 May 1 2014 check_nrpe
-rwxr-xr-x. 1 nagios nagios 140366 Feb 9 20:23 check_nt
-rwxr-xr-x. 1 nagios nagios 139652 Feb 9 20:23 check_ntp
-rwxr-xr-x. 1 nagios nagios 134020 Feb 9 20:23 check_ntp_peer
-rwxr-xr-x. 1 nagios nagios 130476 Feb 9 20:23 check_ntp_time
-rwxr-xr-x. 1 nagios nagios 165767 Feb 9 20:23 check_nwstat
-rwxr-xr-x. 1 nagios nagios 8788 Feb 9 20:23 check_oracle
-rwxr-xr-x. 1 nagios nagios 123295 Feb 9 20:23 check_overcr
-rwxr-xr-x. 1 nagios nagios 144974 Feb 9 20:23 check_ping
lrwxrwxrwx. 1 nagios nagios 9 Feb 9 20:23 check_pop -> check_tcp
-rwxr-xr-x. 1 nagios nagios 147468 Feb 9 20:23 check_procs
-rwxr-xr-x. 1 nagios nagios 121315 Feb 9 20:23 check_real
-rwxr-xr-x. 1 nagios nagios 9578 Feb 9 20:23 check_rpc
-rwxr-xr-x. 1 nagios nagios 1451 Feb 9 20:23 check_sensors
-rwxr-xr-x. 1 nagios nagios 149170 Feb 9 20:23 check_smtp
-rwxr-xr-x. 1 nagios nagios 118768 Feb 9 20:23 check_ssh
-rwxr-xr-x. 1 nagios nagios 109251 Feb 9 20:23 check_swap
-rwxr-xr-x. 1 nagios nagios 131872 Feb 9 20:23 check_tcp
-rwxr-xr-x. 1 nagios nagios 120521 Feb 9 20:23 check_time
lrwxrwxrwx. 1 nagios nagios 9 Feb 9 20:23 check_udp -> check_tcp
-rwxr-xr-x. 1 nagios nagios 130619 Feb 9 20:23 check_ups
-rwxr-xr-x. 1 nagios nagios 104846 Feb 9 20:23 check_uptime
-rwxr-xr-x. 1 nagios nagios 102665 Feb 9 20:23 check_users
-rwxr-xr-x. 1 nagios nagios 2933 Feb 9 20:23 check_wave
drwxr-xr-x. 4 nagios nagios 4096 Feb 9 20:20 eventhandlers
-rwxr-xr-x. 1 nagios nagios 104903 Feb 9 20:23 negate
-rwxr-xr-x. 1 nagios nagios 101699 Feb 9 20:23 urlize
-rwxr-xr-x. 1 nagios nagios 1876 Feb 9 20:23 utils.pm
-rwxr-xr-x. 1 nagios nagios 2789 Feb 9 20:23 utils.sh
Attachments
nrpe.cfg
(8.52 KiB) Downloaded 445 times
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios 4.0.8 Web Interface Not Working

Post by Box293 »

Here's one example:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H remote_host_address -c check_home-disk
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Nagios 4.0.8 Web Interface Not Working

Post by rlinux57 »

It shows: usr/local/nagios/libexec/check_nrpe -H HOSTNAME -c check_uptime
-bash: /usr/local/nagios/libexec/check_nrpe: cannot execute binary file
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios 4.0.8 Web Interface Not Working

Post by Box293 »

Your nrpe.cfg file does not have a command definition for check_uptime
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Nagios 4.0.8 Web Interface Not Working

Post by rlinux57 »

But it shows in every command:

/usr/local/nagios/libexec/check_nrpe -H HOSTNAME -c check_load -w 2 -c 3
-bash: /usr/local/nagios/libexec/check_nrpe: cannot execute binary file
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Nagios 4.0.8 Web Interface Not Working

Post by rhassing »

Check is SElinux is enabled, and if it is, disable it.

Code: Select all

getenforce

Code: Select all

setenforce 0
Rob Hassing
Image
Locked