Flapping

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.
MPIvan
Posts: 213
Joined: Thu Nov 22, 2012 6:09 am

Re: Flapping

Post by MPIvan »

I already run this one but here it is again ...
root@mpnagios:~# /usr/local/nagios/libexec/check_ping -H 172.16.1.251 -w 3000.0,80% -c 5000.0,100% -p 5
/bin/ping -n -U -w 30 -c 5 172.16.1.251
CRITICAL - Could not interpret output from ping command
root@mpnagios:~#
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Flapping

Post by lmiltchev »

What is the output of the following command?

Code: Select all

echo $LANG
Be sure to check out our Knowledgebase for helpful articles and solutions!
MPIvan
Posts: 213
Joined: Thu Nov 22, 2012 6:09 am

Re: Flapping

Post by MPIvan »

Language ???? Way ??? but here it is ...
root@mpnagios:/usr/share/snmp# echo $LANG
en_US.UTF-8
root@mpnagios:/usr/share/snmp#
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Flapping

Post by slansing »

Lets re-compile your plugins:

Code: Select all

cd /tmp

wget https://www.nagios-plugins.org/download/nagios-plugins-1.5.tar.gz

tar zxvf nagios-plugins-1.5.tar.gz

cd nagios-plugins-1.5

./configure --with-nagios-user=nagios --with-nagios-group=nagios

make

make install 

service nagios restart
Now try re-scheduling a check through the web interface.
MPIvan
Posts: 213
Joined: Thu Nov 22, 2012 6:09 am

Re: Flapping

Post by MPIvan »

Should i use this new version of plugins or the same that i start with ?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Flapping

Post by slansing »

Both versions should work, however if you are using an older version I would start with that for now.
MPIvan
Posts: 213
Joined: Thu Nov 22, 2012 6:09 am

Re: Flapping

Post by MPIvan »

Hi,

beforei re-compile the plugins (version 1.4.15 the same as i start) i comment ( or uncomment what was it :) ).... i put the "#" sign in front of ping syntax in cgi.cfg file ( #ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$) and then like you sad i execute the commands.

Code: Select all

cd /tmp

wget https://www.nagios-plugins.org/download/nagios-plugins-1.5.tar.gz

tar zxvf nagios-plugins-1.5.tar.gz

cd nagios-plugins-1.5

./configure --with-nagios-user=nagios --with-nagios-group=nagios

make

make install 

service nagios restart
I restart the nagios ( /etc/init.d/nagios restart ) and i try like you sad to re-scheduling through the web interface but i have this error.
Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update!
The permissions on the external command file and/or directory may be incorrect. Read the FAQs on how to setup proper permissions.
An error occurred while attempting to commit your command for processing.
Return from whence you came
i guess i dont have put the right permissions there or ?

Also i notes that most of the commands in the web interface .... right of the host part not working
Disable Active Checks Of This Host Disable active checks of this host
Re-schedule Next Host Check Re-schedule the next check of this host
Submit Passive Check Result For This Host Submit passive check result for this host
Stop Accepting Passive Checks For This Host Stop accepting passive checks for this host
Stop Obsessing Over This Host Stop obsessing over this host
Acknowledge This Host Problem Acknowledge this host problem
Disable Notifications For This Host Disable notifications for this host
Send Custom Notification Send custom host notification
Delay Next Host Notification Delay next host notification
Schedule Downtime For This Host Schedule downtime for this host
Schedule Downtime For All Services On This Host Schedule downtime for all services on this host
Disable Notifications For All Services On This Host Disable notifications for all services on this host
Enable Notifications For All Services On This Host Enable notifications for all services on this host
Schedule A Check Of All Services On This Host Schedule a check of all services on this host
Disable Checks Of All Services On This Host Disable checks of all services on this host
Enable Checks Of All Services On This Host Enable checks of all services on this host
Disable Event Handler For This Host Disable event handler for this host
Disable Flap Detection For This Host Disable flap detection for this host
any idea way ?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Flapping

Post by slansing »

It seems you have more problems on your system then just a broken plugin can you run and show the following:

Code: Select all

ll -la /usr/local/nagios/var/rw/nagios.cmd
The location of the nagios command file may be different in your installation.
MPIvan
Posts: 213
Joined: Thu Nov 22, 2012 6:09 am

Re: Flapping

Post by MPIvan »

It seems you have more problems on your system then just a broken plugin can you run and show the following:
It is a brand new Ubuntu server 12.04.03 LTS and just installed Nagios noting more noting less.

I forgot to mention early that when i restart the nagios more hosts are back in normal, but some how, they turn to use the "/bin/ping" again.

Here it is the output of what you want
root@mpnagios:~# ll -la /usr/local/nagios/var/rw/nagios.cmd
prw-rw---- 1 nagios nagcmd 0 Oct 14 07:52 /usr/local/nagios/var/rw/nagios.cmd|
root@mpnagios:~#
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Flapping

Post by slansing »

At this point it looks like the issue is with the ping binary on your actual installation, there are a couple options, you can find the source for ping and re-compile it, then copy the binary over. Or you can provision a new system and re-install core on it. Right now this is beyond the realm and scope of Nagios Support so this will have to be taken care of separately.
Locked