Ping Results - Cannot connect to host
Moderators: Developers, Moderators
Ping Results - Cannot connect to host
I've been using Cacti for a while, but just set up a new upgraded server
running the latest Apache + PHP 5.2.5 and Cacti 0.8.7a. I have added
some devices, but I get the following error all the time:
Ping Results - Cannot connect to host
I have 'Downed Host Detection' set to ICMP ping in the device template.
However I can ping the target server fine from the command line.
[06-Dec-2007 17:49:34] PHP Warning: socket_create() [<a href='function.socket-create'>function.socket-create</a>]: Unable to create socket [1]: Operation not permitted in /var/www/cacti/lib/ping.php on line 148
PHP is compiled with --enable-sockets
Any ideas?
running the latest Apache + PHP 5.2.5 and Cacti 0.8.7a. I have added
some devices, but I get the following error all the time:
Ping Results - Cannot connect to host
I have 'Downed Host Detection' set to ICMP ping in the device template.
However I can ping the target server fine from the command line.
[06-Dec-2007 17:49:34] PHP Warning: socket_create() [<a href='function.socket-create'>function.socket-create</a>]: Unable to create socket [1]: Operation not permitted in /var/www/cacti/lib/ping.php on line 148
PHP is compiled with --enable-sockets
Any ideas?
Hello,
Same error... just after an update from 0.8.6j to 0.8.7a...
My host are well graphed with advanced ping.. and monitoring is ok too.
Only this error when i want to edit a device...
Have you find any solution?
Thanks !
Same error... just after an update from 0.8.6j to 0.8.7a...
My host are well graphed with advanced ping.. and monitoring is ok too.
Only this error when i want to edit a device...
Have you find any solution?
Thanks !
- Attachments
-
- screencopy011.jpg (21.03 KiB) Viewed 15617 times
-
- screencopy012.jpg (37.44 KiB) Viewed 15617 times
Re: same....
me too after upgrade 0.8.7a:brent192 wrote:I have the same issue, after I upgraded to 0.8.7a....... and yes, the poller is running as root.
Warning: socket_create() Unable to create socket [1]: Operation not permitted in /usr/share/cacti/cacti-0.8.7a/lib/ping.php on line 148
Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /usr/share/cacti/cacti-0.8.7a/lib/ping.php on line 150
Someone had the same problems (and the resolution?) ?
- pshankland
- Cacti User
- Posts: 247
- Joined: Fri Dec 31, 2004 7:07 am
- Location: UK
- pshankland
- Cacti User
- Posts: 247
- Joined: Fri Dec 31, 2004 7:07 am
- Location: UK
I have just double checked and although through the 'Device' screen I get this error when I select either ICMP or TCP ping method, I do not get this with UDP ping!! There is no firewall in between the Cacti server and device so I am a bit lost as to why it cannot connect.
Also, with the same devices that are having ICMP and TCP ping connectivity problems, I am using the Advanced Ping Template 1.3 and that is using ICMP to ping and that is fine!!
Very strange...
Also, with the same devices that are having ICMP and TCP ping connectivity problems, I am using the Advanced Ping Template 1.3 and that is using ICMP to ping and that is fine!!
Very strange...
- pshankland
- Cacti User
- Posts: 247
- Joined: Fri Dec 31, 2004 7:07 am
- Location: UK
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
As I do not need the full functionality of advanced ping (only ICMP required) and as I do NOT like to run the poller as root, I implemented a "simple" workaround. I've re-written the basic php script server script (hmm, was it perl or was in shell, don't know by heart) to produce the exactly same output. And IMHO, it's way faster.
Reinhard
Reinhard
Who is online
Users browsing this forum: No registered users and 3 guests