localhost and switch status Down

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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: localhost and switch status Down

Post by slansing »

Please run the following and show the output:

Code: Select all

ll -la /usr/local/nagios/libexec/check_icmp
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: localhost and switch status Down

Post 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
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.
volpeadmin
Posts: 21
Joined: Wed Sep 25, 2013 9:44 am

Re: localhost and switch status Down

Post 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
}
volpeadmin
Posts: 21
Joined: Wed Sep 25, 2013 9:44 am

Re: localhost and switch status Down

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: localhost and switch status Down

Post 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
volpeadmin
Posts: 21
Joined: Wed Sep 25, 2013 9:44 am

Re: localhost and switch status Down

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: localhost and switch status Down

Post by abrist »

Are you going to install through the repos or source? (my suggestion is to do a source install of the plugins)
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.
Locked