Can Ping host from CLI but not from Cacti

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
cksrealm
Cacti User
Posts: 140
Joined: Sun May 08, 2005 5:45 pm
Location: Sydney,Australia
Contact:

Can Ping host from CLI but not from Cacti

Post by cksrealm »

Hi all,
Having a weird thing here, running RedHat Enterprise 8.0 and I can ping a device from the servers CLI see below.
[netmon@ncdlnetmonp001 cacti]$ ping wwmnwygm01c94
PING wwmnwygm01c94 (x.x.x.x) 56(84) bytes of data.
64 bytes from wwmnwygm01c94 (x.x.x.x): icmp_seq=1 ttl=244 time=4.65 ms
64 bytes from wwmnwygm01c94 (x.x.x.x): icmp_seq=2 ttl=244 time=4.83 ms
!
However in Cacti its stating that ICMP ping timed out.
Ping Results
ICMP ping Timed out.

I have tried to ping using the Cacti ping scripts that I think it used and both work.
[netmon@ncdlnetmonp001 scripts]$ ./ping.pl wwmnwygm01c94
4.72[netmon@ncdlnetmonp001 scripts]$
[netmon@ncdlnetmonp001 scripts]$
[netmon@ncdlnetmonp001 scripts]$
[netmon@ncdlnetmonp001 scripts]$ ./ss_fping.php wwmnwygm01c94
min:4.4010 avg:4.5100 max:4.6180 dev:0.0787 loss:0.0000[netmon@ncdlnetmonp001 scripts]$

Any suggestions would be greatly appreciated.

Regards
System - Red Hat Enterprise
Cacti Version - 1.2.23
RRDTool - 1.7.0
Poller - CMD
[u]Plugins Installed[/u]
Monitor 2.5
ReportIT 1.1.3
Thold 1.7
Weathermap 1.0
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Can Ping host from CLI but not from Cacti

Post by cigamit »

Typically the issue is that the web server user doesn't have permission to execute the ping script. So I would start there.
cksrealm
Cacti User
Posts: 140
Joined: Sun May 08, 2005 5:45 pm
Location: Sydney,Australia
Contact:

Re: Can Ping host from CLI but not from Cacti

Post by cksrealm »

Can you confirm which command it runs to to the test is it ping.pl or ss_fping.pl for the ping test?
Either way when running it as the apache user it works.
System - Red Hat Enterprise
Cacti Version - 1.2.23
RRDTool - 1.7.0
Poller - CMD
[u]Plugins Installed[/u]
Monitor 2.5
ReportIT 1.1.3
Thold 1.7
Weathermap 1.0
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Can Ping host from CLI but not from Cacti

Post by TheWitness »

Check for SELinux rules blocking the execution of /bin/ping.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests