Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Jul 22, 2019 3:42 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 527 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10, 11 ... 36  Next
Author Message
 Post subject:
PostPosted: Mon Feb 06, 2006 10:48 am 
Offline
Cacti User

Joined: Tue Dec 06, 2005 8:36 am
Posts: 61
Location: UK
nerdtalker wrote:
This just plainly isn't working for me.

I've imported everything, and made sure that it's all executable by everyone, but when I create a new host, and give it the graph template of PING - Advanced Ping v1.3, I'm not prompted about anything like I'm supposed to, nor do the graphs generate anything.

I'm not sure if it matters, but I'm running PHP4.


I noticed that to get this working i need to first add a host (i have created a host template called Ping which adds the Advanced Ping template). Then once created, i then go to the Data Sources and create that. From there i then go to the Graph Management and create a graph for it.

This seems to work fine for me (eventually :) )


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 06, 2006 3:01 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22376
Location: Muenster, Germany
To all:
Please switch to DEBUG mode (Settings-> Logging Level) and post log/cacti.log for exactly one poller's run. Don't forget to reset logging level afterwards or cacti will fill up your disk space...
Please append follwing information:
- parameters used (e.g. ICMP, UDP, TCP and Port if needed)
- Downed Host Detection settings
- Status of Host in Devices list
- whether you configured SNMP community string or not (please do not send your plain community string!)
- crontab settings for cacti (whole crontab entry, please)
Then please "su" to the user the poller is running as (usually: cactiuser) and run the advanced ping command against your failing host and post all this together
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: packet size
PostPosted: Tue Feb 07, 2006 4:50 pm 
Offline

Joined: Wed Feb 02, 2005 5:26 pm
Posts: 22
Location: Zurich, Switzerland
hi there,

after struggeling with sockets support in php and permission problems I finally got it to work. What a great script. I guess there is no more need for the fping perl-script.

As we have applications running on our network with large packet size (up to 1500bytes), it would be great to enter the number of bytes a packet could have. What do you think about this feature ?

I guess a standard ICMP packet has a size of 56bytes ?

cheers... :roll:


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 07, 2006 6:52 pm 
Offline

Joined: Fri Feb 03, 2006 6:59 pm
Posts: 14
ok.trying to install this. when it comes time to import the xml I get the following error

Error: XML: Cacti version does not exist


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 07, 2006 8:40 pm 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14804
Location: MI, USA
I might add the packet size thingy to the next version of Cacti either the next point version or 0.9.

TheWitness

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 07, 2006 10:53 pm 
Offline

Joined: Sat Jan 15, 2005 8:27 pm
Posts: 25
lvm wrote:
To all:
Please switch to DEBUG mode (Settings-> Logging Level) and post log/cacti.log for exactly one poller's run. Don't forget to reset logging level afterwards or cacti will fill up your disk space...
Please append follwing information:
- parameters used (e.g. ICMP, UDP, TCP and Port if needed)
- Downed Host Detection settings
- Status of Host in Devices list
- whether you configured SNMP community string or not (please do not send your plain community string!)
- crontab settings for cacti (whole crontab entry, please)
Then please "su" to the user the poller is running as (usually: cactiuser) and run the advanced ping command against your failing host and post all this together
Reinhard

I'm still having problems:

Paramters: Not prompted for any while creating device, associating graph template, or creating data source manually. Assumedly default.
Downed Host: Ping and SNMP, UDP ping, 400 timeout, 2 retry
SNMP comm: None, since the device is a remote host without SNMP (just google.com 64.233.167.99 )
crontab settings: */5 * * * * cacti php /usr/share/cacti/site/poller.php > /dev/null 2>&1
su to cacti, run advanced ping:
Code:
[email protected]:/usr/share/cacti/site/scripts$ php ss_fping.php google.com 20 ICMP

Warning: socket_create() Unable to create socket [1]: Operation not permitted in /usr/share/cacti/site/lib/ping.php on line 96

Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /usr/share/cacti/site/lib/ping.php on line 97

Warning: socket_create() Unable to create socket [1]: Operation not permitted in /usr/share/cacti/site/lib/ping.php on line 96

Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /usr/share/cacti/site/lib/ping.php on line 97

Warning: socket_create() Unable to create socket [1]: Operation not permitted in /usr/share/cacti/site/lib/ping.php on line 96

Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /usr/share/cacti/site/lib/ping.php on line 97

Warning: socket_create() Unable to create socket [1]: Operation not permitted in /usr/share/cacti/site/lib/ping.php on line 96

Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /usr/share/cacti/site/lib/ping.php on line 97

Warning: socket_create() Unable to create socket [1]: Operation not permitted in /usr/share/cacti/site/lib/ping.php on line 96

Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /usr/share/cacti/site/lib/ping.php on line 97

Warning: socket_create() Unable to create socket [1]: Operation not permitted in /usr/share/cacti/site/lib/ping.php on line 96

Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /usr/share/cacti/site/lib/ping.php on line 97

Warning: socket_create() Unable to create socket [1]: Operation not permitted in /usr/share/cacti/site/lib/ping.php on line 96

Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /usr/share/cacti/site/lib/ping.php on line 97

Warning: socket_create() Unable to create socket [1]: Operation not permitted in /usr/share/cacti/site/lib/ping.php on line 96

Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /usr/share/cacti/site/lib/ping.php on line 97

Warning: socket_create() Unable to create socket [1]: Operation not permitted in /usr/share/cacti/site/lib/ping.php on line 96

Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /usr/share/cacti/site/lib/ping.php on line 97

Warning: socket_create() Unable to create socket [1]: Operation not permitted in /usr/share/cacti/site/lib/ping.php on line 96

Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /usr/share/cacti/site/lib/ping.php on line 97

Warning: socket_create() Unable to create socket [1]: Operation not permitted in /usr/share/cacti/site/lib/ping.php on line 96

Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /usr/share/cacti/site/lib/ping.php on line 97

Warning: socket_create() Unable to create socket [1]: Operation not permitted in /usr/share/cacti/site/lib/ping.php on line 96

Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /usr/share/cacti/site/lib/ping.php on line 97

Warning: socket_create() Unable to create socket [1]: Operation not permitted in /usr/share/cacti/site/lib/ping.php on line 96

Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /usr/share/cacti/site/lib/ping.php on line 97

Warning: socket_create() Unable to create socket [1]: Operation not permitted in /usr/share/cacti/site/lib/ping.php on line 96

Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /usr/share/cacti/site/lib/ping.php on line 97

Warning: socket_create() Unable to create socket [1]: Operation not permitted in /usr/share/cacti/site/lib/ping.php on line 96

Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /usr/share/cacti/site/lib/ping.php on line 97

Warning: socket_create() Unable to create socket [1]: Operation not permitted in /usr/share/cacti/site/lib/ping.php on line 96

Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /usr/share/cacti/site/lib/ping.php on line 97

Warning: socket_create() Unable to create socket [1]: Operation not permitted in /usr/share/cacti/site/lib/ping.php on line 96

Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /usr/share/cacti/site/lib/ping.php on line 97

Warning: socket_create() Unable to create socket [1]: Operation not permitted in /usr/share/cacti/site/lib/ping.php on line 96

Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /usr/share/cacti/site/lib/ping.php on line 97

Warning: socket_create() Unable to create socket [1]: Operation not permitted in /usr/share/cacti/site/lib/ping.php on line 96

Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /usr/share/cacti/site/lib/ping.php on line 97

Warning: socket_create() Unable to create socket [1]: Operation not permitted in /usr/share/cacti/site/lib/ping.php on line 96

Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /usr/share/cacti/site/lib/ping.php on line 97


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 08, 2006 4:11 am 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22376
Location: Muenster, Germany
Unable to create socket: This leads to ths assumption, that the user "cacti" which runs the poller does not have permissions for creating ICMP sockets. This is a common problem with unixes. Is it possible for you to change "20 ICMP" to sth like "20 TCP 80"?
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 08, 2006 9:09 pm 
Offline

Joined: Sat Jan 15, 2005 8:27 pm
Posts: 25
lvm wrote:
Unable to create socket: This leads to ths assumption, that the user "cacti" which runs the poller does not have permissions for creating ICMP sockets. This is a common problem with unixes. Is it possible for you to change "20 ICMP" to sth like "20 TCP 80"?
Reinhard
Awesome, that seems to work. Now, how do I change that from within cacti, since I'm never prompted for that kind of information...

Code:
XboxServ:/usr/share/cacti/site/scripts# php ss_fping.php google.com 20 TCP
min:63.4400 avg:82.7500 max:131.1000 dev:14.7154 loss:0.0000XboxServ:/usr/share/


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 09, 2006 12:58 pm 
Offline

Joined: Wed Feb 23, 2005 9:51 am
Posts: 6
I installed this template with cacti 0.8.6h under windows with iis, php5.1.2

I added extension=php_sockets.dll to php.ini

When I log in with admin account i have the folowwing result :
C:\Inetpub\wwwroot\cacti\scripts>php ss_fping.php 10.0.33.253 20 ICMP
min:9.6200 avg:10.2310 max:15.0300 dev:1.1365 loss:0.0000

When I log in with cacti account i have the folowing result :
C:\Inetpub\wwwroot\cacti\scripts>php ss_fping.php 10.0.33.253 20 ICMP
loss:100.00

I gave modification right to cacti user to the c:\php directory

What right should i give to cacti user ?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 09, 2006 4:10 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22376
Location: Muenster, Germany
nerdtalker wrote:
lvm wrote:
Unable to create socket: This leads to ths assumption, that the user "cacti" which runs the poller does not have permissions for creating ICMP sockets. This is a common problem with unixes. Is it possible for you to change "20 ICMP" to sth like "20 TCP 80"?
Reinhard
Awesome, that seems to work. Now, how do I change that from within cacti, since I'm never prompted for that kind of information...

Code:
XboxServ:/usr/share/cacti/site/scripts# php ss_fping.php google.com 20 TCP
min:63.4400 avg:82.7500 max:131.1000 dev:14.7154 loss:0.0000XboxServ:/usr/share/
Please goto Data Sources and select the appropriate one. There you'll find the input parms (Hope I remember this well ...)
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 09, 2006 10:09 pm 
Offline
Cacti User

Joined: Tue Oct 25, 2005 10:01 am
Posts: 142
nevermind my question, it is about the ICMP when not root error. is there a workaround for this besides pinging with tcp? does it really make a difference?

i am now having a problem with php and perl sessions not closing. does anyone else? i think i read something about it somewhere, but dont remember where. it doesnt do it all the time, just sometimes it will hold them in. also, since this script, a lot of my graphs are developing holes in them for some reason. any ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 13, 2006 12:43 pm 
Offline

Joined: Fri Feb 03, 2006 6:59 pm
Posts: 14
when importing the xml i get this error? anyone have any suggestions?

Error: XML: Cacti version does not exist.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 13, 2006 1:18 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22376
Location: Muenster, Germany
nexus wrote:
when importing the xml i get this error? anyone have any suggestions?

Error: XML: Cacti version does not exist.
What cacti version are you running? If it is outdated, you should consider upgrading
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 13, 2006 1:19 pm 
Offline

Joined: Fri Feb 03, 2006 6:59 pm
Posts: 14
0.8.6g-1


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 15, 2006 11:37 pm 
Offline
Cacti User
User avatar

Joined: Wed Feb 15, 2006 11:27 pm
Posts: 92
Location: Idaho
This is an awesome tool, works great for me.

I have one question. Right now, I'm using this to monitor devices behind a router with port maps to the devices. They are all usually like port 60010 to port 80. So that works fine. I'm also using the Threshold plugin to send alerts if the device stop responding. I'm using the average latency to test the threshold right now, but loss would be better I think since its not an average. But I would also like current ping latency to monitor instead of just the average. Just like the default ping template. Is this possible right now and I'm just stupid?

oh, just thought of this, anyone know if its possible to have a device be polled on a different port? So in the hostname field x.x.x.x:60010? I don't see a way to set the poller to use TCP ping instead of ICMP so I'm guessing there is no way.

Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 527 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10, 11 ... 36  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group