PING DUPLICATES and Checks disables
PING DUPLICATES and Checks disables
Hi, i'm a student and i'm studying network monitoring and i'm trying to use nagios 3.
For now i'm trying nagios on the network of my department.
I'm a beginner so my question could be really silly.
1)i got WARNING: PING WARNING - DUPLICATES FOUND!
where i do wrong?
2)A red cross appears near some services, "Checks of this host have been disables".
How can i fix it?
Thanks!
For now i'm trying nagios on the network of my department.
I'm a beginner so my question could be really silly.
1)i got WARNING: PING WARNING - DUPLICATES FOUND!
where i do wrong?
2)A red cross appears near some services, "Checks of this host have been disables".
How can i fix it?
Thanks!
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: PING DUPLICATES and Checks disables
Hmm, this is a strange error. Have you verified your configuration files? Run the following from the CLI and let us know if you see any errors:
Is this just a standard check_ping service?
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgRe: PING DUPLICATES and Checks disables
from /etc/nagios3/conf.d/services_nagios2.cfg
from /etc/nagios-plugins/config/ping.cfg
Code: Select all
define service {
use generic-service
service_description ping
check_command check_ping!500,100%!5000.0,100%
normal_check_interval 1
retry_check_interval 1
notification_interval 0
hostgroup_name ping_server
contact_groups admins
}Code: Select all
define_command{
command_name check_ping
command_line /urs/lib/nagios/plugins/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$
}-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: PING DUPLICATES and Checks disables
What was returned when you ran:
Or from where your nagios bin is to the nagios.cfg.
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgRe: PING DUPLICATES and Checks disables
there is no nagios directory inside /usr/local/
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: PING DUPLICATES and Checks disableshttp://support.nagios
Please find your nagios bin, and then add the -v after the directory path, then point the rest of it towards the nagios.cfg as shown in the example above. This is how you verify your configuration files against things like what you are seeing.Or from where your nagios bin is to the nagios.cfg.
Re: PING DUPLICATES and Checks disables
Code: Select all
Nagios Core 3.4.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 05-11-2012
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config file '/etc/nagios3/commands.cfg'...
Processing object config directory '/etc/nagios-plugins/config'...
Processing object config file '/etc/nagios-plugins/config/http.cfg'...
Processing object config file '/etc/nagios-plugins/config/mailq.cfg'...
Processing object config file '/etc/nagios-plugins/config/telnet.cfg'...
Processing object config file '/etc/nagios-plugins/config/ifstatus.cfg'...
Processing object config file '/etc/nagios-plugins/config/fping.cfg'...
Processing object config file '/etc/nagios-plugins/config/apt.cfg'...
Processing object config file '/etc/nagios-plugins/config/ping.cfg'...
Processing object config file '/etc/nagios-plugins/config/breeze.cfg'...
Processing object config file '/etc/nagios-plugins/config/procs.cfg'...
Processing object config file '/etc/nagios-plugins/config/flexlm.cfg'...
Processing object config file '/etc/nagios-plugins/config/real.cfg'...
Processing object config file '/etc/nagios-plugins/config/dns.cfg'...
Processing object config file '/etc/nagios-plugins/config/netware.cfg'...
Processing object config file '/etc/nagios-plugins/config/users.cfg'...
Processing object config file '/etc/nagios-plugins/config/mrtg.cfg'...
Processing object config file '/etc/nagios-plugins/config/ntp.cfg'...
Processing object config file '/etc/nagios-plugins/config/disk.cfg'...
Processing object config file '/etc/nagios-plugins/config/mysql.cfg'...
Processing object config file '/etc/nagios-plugins/config/check_nrpe.cfg'...
Processing object config file '/etc/nagios-plugins/config/hppjd.cfg'...
Processing object config file '/etc/nagios-plugins/config/snmp.cfg'...
Processing object config file '/etc/nagios-plugins/config/pgsql.cfg'...
Processing object config file '/etc/nagios-plugins/config/ftp.cfg'...
Processing object config file '/etc/nagios-plugins/config/dummy.cfg'...
Processing object config file '/etc/nagios-plugins/config/load.cfg'...
Processing object config file '/etc/nagios-plugins/config/nt.cfg'...
Processing object config file '/etc/nagios-plugins/config/games.cfg'...
Processing object config file '/etc/nagios-plugins/config/tcp_udp.cfg'...
Processing object config file '/etc/nagios-plugins/config/mail.cfg'...
Processing object config file '/etc/nagios-plugins/config/ssh.cfg'...
Processing object config file '/etc/nagios-plugins/config/ldap.cfg'...
Processing object config file '/etc/nagios-plugins/config/disk-smb.cfg'...
Processing object config file '/etc/nagios-plugins/config/rpc-nfs.cfg'...
Processing object config file '/etc/nagios-plugins/config/news.cfg'...
Processing object config file '/etc/nagios-plugins/config/radius.cfg'...
Processing object config file '/etc/nagios-plugins/config/dhcp.cfg'...
Processing object config directory '/etc/nagios3/conf.d'...
Processing object config file '/etc/nagios3/conf.d/timeperiods_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/services_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/hostgroups_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/contacts_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/hosts.cfg'...
Processing object config file '/etc/nagios3/conf.d/localhost_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/generic-service_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/extinfo_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/generic-host_nagios2.cfg'...
Processing object config file '/etc/nagios3/conf.d/services.cfg'...
Processing object config file '/etc/nagios3/objects/windows.cfg'...
Read object config files okay...
Running pre-flight check on configuration data...
Checking services...
Checked 11 services.
Checking hosts...
Warning: Host 'host1' has no services associated with it!
Warning: Host 'host2' has no services associated with it!
Checked 8 hosts.
Checking host groups...
Checked 9 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 153 commands.
Checking time periods...
Checked 4 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 2
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight checkRe: PING DUPLICATES and Checks disables
Do you get the same error if you use "check_icmp" instead of "check_ping"? Have you tried switching from NAT-ed to Bridged connection and back to see if this is going to resolve the issue? Do you have more than one NIC?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: PING DUPLICATES and Checks disables
Ok, the problem was related with a double NIC of virtual machine that i was using.
So i decided to install nagios3 directly on the real machine(with one NIC), the ping duplicates issue is gone, but:
some host seems to be down(with network's structure unchanged).
Using another virtual machine i installed an other distro of linux e then nagios3 and the host were all up.
If i ping from the machine an host marked as down i get:
From the virtual machine i get:
How can i fix that?
So i decided to install nagios3 directly on the real machine(with one NIC), the ping duplicates issue is gone, but:
some host seems to be down(with network's structure unchanged).
Using another virtual machine i installed an other distro of linux e then nagios3 and the host were all up.
If i ping from the machine an host marked as down i get:
Code: Select all
ping 192.168.121.1
PING 192.168.121.1 (192.168.121.1) 56(84) bytes of data.
From 192.168.40.179: icmp_seq=1 Redirect Host(New nexthop: 192.168.40.6)
From 192.168.40.179 icmp_seq=1 Redirect Host64 bytes from 192.168.121.1: icmp_req=1 ttl=63 time=19.7 ms
From 192.168.40.179: icmp_seq=2 Redirect Host(New nexthop: 192.168.40.6)
From 192.168.40.179 icmp_seq=2 Redirect Host64 bytes from 192.168.121.1: icmp_req=2 ttl=63 time=49.0 ms
....Code: Select all
PING 192.168.121.1 (192.168.121.1) 56(84) bytes of data.
64 bytes from 192.168.121.1: icmp_req=1 ttl=128 time=18.9 ms
64 bytes from 192.168.121.1: icmp_req=2 ttl=128 time=28.4 ms
64 bytes from 192.168.121.1: icmp_req=3 ttl=128 time=33.7 ms
....-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: PING DUPLICATES and Checks disables
Are you pinging another virtual device on that host machine? It seems that it might be an issue with routes. Are your virtual network and the physical network in similar address space, ie 192.168.10.xxx and 192.168.15.xxx? Possibly where your physical network could have existing routes for your virtual address space that you do not directly know of our use?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.