Page 2 of 4

Re: Nagios 4.0.8 Web Interface Not Working

Posted: Wed Feb 11, 2015 11:24 am
by rhassing
What happens if you execute the entire check command (including all options etc) from the command line?

Re: Nagios 4.0.8 Web Interface Not Working

Posted: Wed Feb 11, 2015 11:28 am
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.

Re: Nagios 4.0.8 Web Interface Not Working

Posted: Wed Feb 11, 2015 11:32 am
by scottwilkerson
Lets see the permissions of the following

Code: Select all

ls -ld /usr/local/nagios/libexec
ls -ld /usr/local/nagios

Re: Nagios 4.0.8 Web Interface Not Working

Posted: Wed Feb 11, 2015 11:34 am
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).

Re: Nagios 4.0.8 Web Interface Not Working

Posted: Wed Feb 11, 2015 11:37 am
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

Re: Nagios 4.0.8 Web Interface Not Working

Posted: Wed Feb 11, 2015 11:47 am
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.

Re: Nagios 4.0.8 Web Interface Not Working

Posted: Wed Feb 11, 2015 4:51 pm
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.

Re: Nagios 4.0.8 Web Interface Not Working

Posted: Wed Feb 11, 2015 10:02 pm
by rlinux57
I have already installed nrpe and nrpe plugins on remote host.

Re: Nagios 4.0.8 Web Interface Not Working

Posted: Wed Feb 11, 2015 10:26 pm
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

Re: Nagios 4.0.8 Web Interface Not Working

Posted: Thu Feb 12, 2015 4:39 am
by rlinux57
No effect with these permissions.

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