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:~#
Flapping
Re: Flapping
I already run this one but here it is again ...
Re: Flapping
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!
Re: Flapping
Language ???? Way ??? but here it is ...
root@mpnagios:/usr/share/snmp# echo $LANG
en_US.UTF-8
root@mpnagios:/usr/share/snmp#
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Flapping
Lets re-compile your plugins:
Now try re-scheduling a check through the web interface.
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
Re: Flapping
Should i use this new version of plugins or the same that i start with ?
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Flapping
Both versions should work, however if you are using an older version I would start with that for now.
Re: Flapping
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.
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.
Also i notes that most of the commands in the web interface .... right of the host part not working
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 guess i dont have put the right permissions there or ?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
Also i notes that most of the commands in the web interface .... right of the host part not working
any idea way ?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
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Flapping
It seems you have more problems on your system then just a broken plugin can you run and show the following:
The location of the nagios command file may be different in your installation.
Code: Select all
ll -la /usr/local/nagios/var/rw/nagios.cmd
Re: Flapping
It is a brand new Ubuntu server 12.04.03 LTS and just installed Nagios noting more noting less.It seems you have more problems on your system then just a broken plugin can you run and show the following:
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:~#
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Flapping
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.