Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
cactiuser@<hostname> /root $ /usr/sbin/cactid
CACTID: Using cactid config file [/etc/cactid.conf]
CACTID: Version 0.8.6f starting
CACTID: WARNING: Falling back to UDP Ping due to not running asroot. Please use "chmod xxx0 /usr/bin/cactid" to resolve.
cactiuser@<hostname> /root $ /usr/sbin/cactid
CACTID: Using cactid config file [/etc/cactid.conf]
CACTID: Version 0.8.6f starting
CACTID: WARNING: Falling back to UDP Ping due to not running asroot. Please use "chmod xxx0 /usr/bin/cactid" to resolve.
CACTID: Host[2] ERROR: HOST EVENT: Host is DOWN Message: SNMP not performed due to setting or ping result, UDP: Ping timed out
As you can see, my cactid binary is available for every user, the mentioned chmod 7770 only makes it worse.
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.
You can try to run cactid through sudo, or use the setuid root (chmod +s).
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
cactiuser@<hostname> /root $ ls -al /usr/sbin/cactid
-rwxrwxrwx 1 root root 58516 Aug 22 09:33 /usr/sbin/cactid
The output from your ls -l is are '0777' permissions. The instructions were suggesting you make it setuid-root (basically makes it run as the root user instead of whoever executes it).
Note: You do *NOT* want it to be both world writeable and setuid. That's a major security hole. If you want cactid to run as root, you'd probably want to 'chmod 4711 /usr/sbin/cactid'. Then your ls -l should show '-rws--x--x root root' (notice the s in the 4th spot).
Older post but found another fix, I had the same problem with cactid being in /usr/local/bin/cactid as mentioned in this post it was in /usr/sbin/cactid. In either case move the cactid file to /usr/bin/cactid and it will run.
Has anyone figure out how to get ICMP ping working on stubborn systems?
I'm running cacti 1.0.0 checked out from git repo (commit 1f8d38f787caf0609c4bbc90195b5d4a957790d8)
I'm also using the latest spine.
my spine binary is owned by root and I can ping from the command line either as root or as the cacti user.
Here is my crontab: