UDP Pings Go Out Instead of ICMP - Windows Hosts Show Down

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
ssnapp
Posts: 14
Joined: Fri Feb 15, 2013 1:37 pm

UDP Pings Go Out Instead of ICMP - Windows Hosts Show Down

Post by ssnapp »

Cacti 0.8.8a running on CentOS 6.3 x64 w/ SELinux
Poller: Spine (run as cactiuser)
Down Host Detection: Ping - ICMP
chmod 4755 spine


I have windows hosts showing down but they are up. I'm using ICMP pings as the detection method, but UDP pings are going out in place of ICMP (verified in Wireshark). I can ping the Windows hosts via CLI on the Cacti server successfully. What have I missed?

Thanks
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: UDP Pings Go Out Instead of ICMP - Windows Hosts Show Do

Post by BSOD2600 »

A Windows 2008 R2 host will respond to both ICMP and UDP ping requests (I just tested with nmap).

in Settings -> Poller -> Poller Host Availability Settings, see this comment :
Ping Type
The type of ping packet to sent. NOTE: ICMP requires that the Cacti Service ID have root privilages in Unix.
sure cacti service has root?
ssnapp
Posts: 14
Joined: Fri Feb 15, 2013 1:37 pm

Re: UDP Pings Go Out Instead of ICMP - Windows Hosts Show Do

Post by ssnapp »

Below are permissions for the spine binary.

Code: Select all

-rwsrwxr-x. 1 cacti cacti 261323 Feb 20 08:26 spine
Do I need to configure the cron job to run as root? The cron job is set to run with the cacti user.
ssnapp
Posts: 14
Joined: Fri Feb 15, 2013 1:37 pm

Re: UDP Pings Go Out Instead of ICMP - Windows Hosts Show Do

Post by ssnapp »

What am I supposed to find here? Looking over the document it states that I should use the cacti account in the cron job, which I am doing.

Is ICMP broken in Cacti?

I stumbled upon this old topic but there's no resolution.
http://forums.cacti.net/viewtopic.php?f=21&t=47142

Is there good documentation for configuring spine to work with ICMP? Can someone clarify what "NOTE: ICMP requires that the Cacti Service ID have root privilages in Unix." means?

Thanks
ssnapp
Posts: 14
Joined: Fri Feb 15, 2013 1:37 pm

Re: UDP Pings Go Out Instead of ICMP - Windows Hosts Show Do

Post by ssnapp »

I swear that I'm not insane.

I ran debug level logging and found the following:

Code: Select all

03/26/2013 01:25:01 PM - SPINE: Poller[0] WARNING: Spine NOT running asroot. This is required if using ICMP. Please run "chmod +s;chown root:root spine" to resolve.
I've ran chmod +s and chown root:root on the spine binary (I did the chown command this morning).

Once I gave ownership of the spine.conf file to root ICMP worked.

Code: Select all

03/26/2013 01:45:01 PM - SPINE: Poller[0] DEBUG: Spine is running asroot.
Should spine.conf be owned by root? I know that the install guide states that Spine should be installed by root, but for whatever reason it was owned by cacti:cacti.

Thanks
ssnapp
Posts: 14
Joined: Fri Feb 15, 2013 1:37 pm

Re: UDP Pings Go Out Instead of ICMP - Windows Hosts Show Do

Post by ssnapp »

I must be insane...I set the spine.conf permissions back to cacti.cacti and everything is still working. I'm not sure what changed then, but it's working.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: UDP Pings Go Out Instead of ICMP - Windows Hosts Show Do

Post by gandalf »

ssnapp wrote:I've ran chmod +s and chown root:root on the spine binary (I did the chown command this morning).
Try chmod u+s. Not verified, just taken from another thread
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests