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.
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 »

What happens if you execute the entire check command (including all options etc) from the command line?
Rob Hassing
Image
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Nagios 4.0.8 Web Interface Not Working

Post by rlinux57 »

/usr/local/nagios/libexec/check_load IP ADDRESS -w 2 -c 3
OK - load average: 0.00, 0.00, 0.00|load1=0.000;2.000;3.000;0; load5=0.000;2.000;3.000;0; load15=0.000;2.000;3.000;0;

But it cannot show the correct load, it shows warning and critical as it is in arguments.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios 4.0.8 Web Interface Not Working

Post by scottwilkerson »

Lets see the permissions of the following

Code: Select all

ls -ld /usr/local/nagios/libexec
ls -ld /usr/local/nagios
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
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 »

This is a check_load command, not a check_nrpe command.
The check_load command is for localhost only, so ip address is not required (or not even working).
Rob Hassing
Image
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Nagios 4.0.8 Web Interface Not Working

Post by rlinux57 »

drwxrwxr-x. 3 root root 4096 Feb 11 09:35 /usr/local/nagios/libexec


drwxr-xr-x. 9 root root 4096 Feb 9 20:23 /usr/local/nagios
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Nagios 4.0.8 Web Interface Not Working

Post by rlinux57 »

rhassing wrote:This is a check_load command, not a check_nrpe command.
The check_load command is for localhost only, so ip address is not required (or not even working).


Then how can i check from nagios server.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios 4.0.8 Web Interface Not Working

Post by abrist »

You need to install nrpe and nagios-plugins on the remote host and then write some check_nrpe check commands/service check definitions for those checks.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
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 already installed nrpe and nrpe plugins on remote host.
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 »

rlinux57 wrote:drwxrwxr-x. 3 root root 4096 Feb 11 09:35 /usr/local/nagios/libexec
I believe these permissions are wrong, as the monitoring engine runs as the user nagios.
Run this command on your Nagios host:

Code: Select all

chown -R nagios:nagios /usr/local/nagios/libexec
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 »

No effect with these permissions.

drwxrwxr-x. 3 nagios nagios 4096 Feb 11 09:35 libexec
Locked