|
|
| Author |
Message |
rsenio
Joined: 08 Aug 2008 Posts: 2
|
Posted: Fri Aug 08, 2008 9:39 am Post subject: Something that has been covered before |
|
|
OK, so let me begin by saying I'm by no means a linux guy. Having said that I'm running the Cacti VM appliance 0.8.7b from http://virtualappliances.net/products/cacti.php
I've been having the same problem as many have with regards to the icmp pings. When selecting ICMP for a device I get
Warning: socket_create() [function.socket-create]: Unable to create socket [1]: Operation not permitted in /usr/share/cacti/site/lib/ping.php on line 158
Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /usr/share/cacti/site/lib/ping.php on line 160
As stated in many other posts this seems to be related to permissions and what account the poller/cacti is running under? I'm not sure what flavor of linux this appliance uses but as far as I can tell everything seems to be running under the root account already. But I could be wrong, trust me on that one. So is someone willing to direct me in getting this working properly? If it isn't running under the root account, lets make it that way. Seems to be the simplest fix, and I'm not cocerned about the security issues (trust me on that one too
Please help! |
|
| Back to top |
|
 |
N3NCY Cacti User
Joined: 22 Sep 2005 Posts: 241 Location: Landenberg, PA
|
Posted: Sat Aug 09, 2008 7:46 am Post subject: |
|
|
When your web server tries to create a socket as a non root user it cannot.
There is really two things happening here at least.
1.) When you set a host to ICMP PING as downed host detection and then the PHP WEB PAGE tries to do an ICMP PING, it can''t create a raw socket.
Fix1 could stop have the PHP WEB PAGE stop trying to ping
Fix2 could be to get SUID working
http://forums.cacti.net/viewtopic.php?p=141248&highlight=#141248
2.) The actual poller that runs every 5 minutes does actually run as root on many Cact installs, if your poller (see /etc/crontab) is running as root, it can create ICMP and you can ignore the socket errors you see in the web interface |
|
| Back to top |
|
 |
rsenio
Joined: 08 Aug 2008 Posts: 2
|
Posted: Mon Aug 11, 2008 10:05 am Post subject: |
|
|
| I am trying to run a ICMP ping so that it graphs any latency to the host. I'm a noob when it comes to the advanced linux stuff. I'm not sure I understand the SUID option |
|
| Back to top |
|
 |
|