Page 3 of 3
Re: localhost and switch status Down
Posted: Mon Sep 30, 2013 1:06 pm
by slansing
Please run the following and show the output:
Code: Select all
ll -la /usr/local/nagios/libexec/check_icmp
Re: localhost and switch status Down
Posted: Mon Sep 30, 2013 1:07 pm
by abrist
Alright. We need to see the "check-host-alive" check-command configuration and a listing of your libexec folder:
Code: Select all
ls -la /usr/local/nagios/libexec
grep -4 check-host-alive commands.cfg
Re: localhost and switch status Down
Posted: Mon Sep 30, 2013 1:50 pm
by volpeadmin
# ls -la /usr/local/nagios/libexec
total 12
drwxrwxr-x. 3 nagios nagios 4096 Sep 25 09:42 .
drwxr-xr-x. 8 root root 4096 Sep 18 14:46 ..
drwxr-xr-x. 4 nagios nagios 4096 Sep 25 09:42 eventhandlers
# grep -4 check-host-alive commands.cfg
# The check must result in a 100% packet loss or 5 second (5000ms) round trip
# average time to produce a critical error.
# Note: Five ICMP echo packets are sent (determined by the '-p 5' argument)
# 'check-host-alive' command definition
define command{
command_name check-host-alive
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5
}
Re: localhost and switch status Down
Posted: Mon Sep 30, 2013 2:45 pm
by volpeadmin
slansing wrote:Please run the following and show the output:
Code: Select all
ll -la /usr/local/nagios/libexec/check_icmp
# ll -la /usr/local/nagios/libexec/check_icmp
ls: cannot access /usr/local/nagios/libexec/check_icmp: No such file or directory
Re: localhost and switch status Down
Posted: Mon Sep 30, 2013 3:27 pm
by slansing
What distro are you running? It appears as if you do not have the nagios plugins package installed, can you install them and then check your web interface again?:
http://www.nagios.org/projects/nagiosplugins
Re: localhost and switch status Down
Posted: Mon Sep 30, 2013 3:52 pm
by volpeadmin
and of course it worked...well, I could have sworn I installed the plugins, that's why I was ignoring that possibility adamantly. but apparently not- thanks for your help and patience and please excuse my ignorance. thanks again
Re: localhost and switch status Down
Posted: Mon Sep 30, 2013 4:59 pm
by abrist
Are you going to install through the repos or source? (my suggestion is to do a source install of the plugins)