Monitoring AP without SNMP function.

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
pepulis
Posts: 9
Joined: Wed Jan 11, 2006 1:45 am
Contact:

Monitoring AP without SNMP function.

Post by pepulis »

I have AP without SNMP function and i want monitoring ping and packet loss. What shell i do? Thx very much.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Try http://forums.cacti.net/viewtopic.php?t=10049 to measure delay and loss between cacti polling host and you target device. This will not require any SNMP setup (pay attention to leave Community of the target device empty if it does not support snmp)
Reinhard
pepulis
Posts: 9
Joined: Wed Jan 11, 2006 1:45 am
Contact:

Post by pepulis »

lvm wrote:Try http://forums.cacti.net/viewtopic.php?t=10049 to measure delay and loss between cacti polling host and you target device. This will not require any SNMP setup (pay attention to leave Community of the target device empty if it does not support snmp)
Reinhard
Thx, but i have a problem. I have any data in my graph. I test /www/php/bin/php /www/htdocs/cacti/scripts/ss_fping.php 192.168.50.12 20 ICMP and output is min:1.6600 avg:2.0920 max:3.8100 dev:0.5651 loss:0.0000, but data nowhere. Thx.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

pepulis wrote:... I test /www/php/bin/php /www/htdocs/cacti/scripts/ss_fping.php 192.168.50.12 20 ICMP and output is min:1.6600 avg:2.0920 max:3.8100 dev:0.5651 loss:0.0000, but data nowhere. Thx.
Please test under php script server. To do so,

Code: Select all

cd /www/htdocs/cacti
php script_server.php
# at the command promt of the script server enter
/www/htdocs/cacti/scripts/ss_fping.php ss_fping 192.168.50.12 20 ICMP
at tell me what this yields. Do not forget to enter ss_fping as the first parameter. This is how to test php scripts from the script server.
cactid (old versions) is know to have problems with script_server on _some_ installations. If problems persist, please post them to the original thread of Advanced Ping to let the author know...
Reinhard
pepulis
Posts: 9
Joined: Wed Jan 11, 2006 1:45 am
Contact:

Post by pepulis »

lvm wrote:
pepulis wrote:... I test /www/php/bin/php /www/htdocs/cacti/scripts/ss_fping.php 192.168.50.12 20 ICMP and output is min:1.6600 avg:2.0920 max:3.8100 dev:0.5651 loss:0.0000, but data nowhere. Thx.
Please test under php script server. To do so,

Code: Select all

cd /www/htdocs/cacti
php script_server.php
# at the command promt of the script server enter
/www/htdocs/cacti/scripts/ss_fping.php ss_fping 192.168.50.12 20 ICMP
at tell me what this yields. Do not forget to enter ss_fping as the first parameter. This is how to test php scripts from the script server.
cactid (old versions) is know to have problems with script_server on _some_ installations. If problems persist, please post them to the original thread of Advanced Ping to let the author know...
Reinhard
Here is output:

[root@localhost php-5.1.2]# cd /www/htdocs/cacti
[root@localhost cacti]# php script_server.php
PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through sock et '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb- mysql.inc.php on line 355
PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through sock et '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb- mysql.inc.php on line 355
PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through sock et '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb- mysql.inc.php on line 355
PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through sock et '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb- mysql.inc.php on line 355
PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through sock et '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb- mysql.inc.php on line 355
PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through sock et '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb- mysql.inc.php on line 355
PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through sock et '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb- mysql.inc.php on line 355
PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through sock et '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb- mysql.inc.php on line 355
PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through sock et '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb- mysql.inc.php on line 355
PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through sock et '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb- mysql.inc.php on line 355
PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through sock et '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb- mysql.inc.php on line 355
PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through sock et '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb- mysql.inc.php on line 355
PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through sock et '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb- mysql.inc.php on line 355
PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through sock et '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb- mysql.inc.php on line 355
PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through sock et '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb- mysql.inc.php on line 355
PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through sock et '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb- mysql.inc.php on line 355
PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through sock et '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb- mysql.inc.php on line 355
PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through sock et '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb- mysql.inc.php on line 355
PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through sock et '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb- mysql.inc.php on line 355
PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through sock et '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb- mysql.inc.php on line 355
PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through sock et '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb- mysql.inc.php on line 355
PHP Script Server has Started - Parent is cmd
/www/htdocs/cacti/scripts/ss_fping.php ss_fping 192.168.50.12 20 ICMP
min:1.8500 avg:2.2545 max:4.6900 dev:0.6728 loss:0.0000

I have PHP 5.1.2 and h version cacti. I have Fedora Core 2 system.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Make sure you have installed the latest patches for 0.8.6h
Have forwarded this to TheWitness.
Reinhard
pepulis
Posts: 9
Joined: Wed Jan 11, 2006 1:45 am
Contact:

Post by pepulis »

lvm wrote:Make sure you have installed the latest patches for 0.8.6h
Have forwarded this to TheWitness.
Reinhard
Yes i installed patches.

[root@localhost cacti]# patch -p1 -N < fix_search_session_clear_issue.patch
patching file host.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file host.php.rej
[root@localhost cacti]# patch -p1 -N < fix_sql_syntax_related_to_default_rra_id.patch
patching file graph.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file graph.php.rej
[root@localhost cacti]# patch -p1 -N < nth_percentile_empty_return_set_issue.patch
patching file lib/graph_variables.php
Reversed (or previously applied) patch detected! Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file lib/graph_variables.php.rej
[root@localhost cacti]# patch -p1 -N < mysql_5x_strict.patch
patching file cacti.sql
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file cacti.sql.rej
patching file lib/database.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/database.php.rej
patching file lib/template.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/template.php.rej
[root@localhost cacti]#
pepulis
Posts: 9
Joined: Wed Jan 11, 2006 1:45 am
Contact:

Post by pepulis »

I experimented and i installed again cacti and all is OK. But i have problem with packet loss. PL is large for some devices. Ping is OK for all. Any ideas.
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests