Problem with a script
I have installed Cacti on a Win2K server and I can poll any snmp device succesfully, but when I run a script that I have to poll some 802.11b radios (smartBridges) I get the following error:
CMDPHP: Poller[0] Host [14] SNMP: Host did not respond to SNMP.
Other than this problem everything is running just fine. The graphs are being created and the poller is running fine.
Any help and/or suggestions that you may have are welcomed.
This is what I have:
Win2K Server
Cacti 8.6b
Cactid 8.6
MySQL 4.0.21
PHP 5.02
Perl 5.8.4
net-snmp 5.1.2
This is the result of running the poller's log in debug mode for one cycle.
10/19/2004 04:27:22 PM - CMDPHP: Poller[0] Time: 2.9138 s, Theads: N/A, Hosts: 5
10/19/2004 04:27:22 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
10/19/2004 04:27:22 PM - CMDPHP: Poller[0] Host[14] SNMP: Host did not respond to SNMP
10/19/2004 04:27:22 PM - CMDPHP: Poller[0] Host[3] SNMP: v1: 64.xxx.xxx.xxx, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.16777220, output: 3475725
10/19/2004 04:27:22 PM - CMDPHP: Poller[0] Host[3] SNMP: v1: 64.xxx.xxx.xxx, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.16777220, output: 1231498
10/19/2004 04:27:22 PM - CMDPHP: Poller[0] Host[3] SNMP: v1: 64.xxx.xxx.xxx, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.16777219, output: 44835
10/19/2004 04:27:22 PM - CMDPHP: Poller[0] Host[3] SNMP: v1: 64.xxx.xxx.xxx, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.16777219, output: 459887
10/19/2004 04:27:22 PM - CMDPHP: Poller[0] Host[3] SERVER: E:\Apache2\htdocs\cacti\scripts\ss_host_cpu.php ss_host_cpu 64.xxx.xxx.xxx public 1 get usage 0, output: 15
10/19/2004 04:27:22 PM - PHPSVR: Poller[0] SERVER: E:\Apache2\htdocs\cacti\scripts\ss_host_cpu.php ss_host_cpu 64.xxx.xxx.xxx public 1 get usage 0 output 15
10/19/2004 04:27:22 PM - PHPSVR: Poller[0] DEBUG: INCLUDE: 'E:\Apache2\htdocs\cacti\scripts\ss_host_cpu.php' SCRIPT: 'ss_host_cpu' CMD: '64.xxx.xxx.xxx public 1 get usage 0'
10/19/2004 04:27:22 PM - CMDPHP: Poller[0] Host[3] SERVER: E:\Apache2\htdocs\cacti\scripts\ss_host_disk.php ss_host_disk 64.xxx.xxx.xxx public 1 3 get total 5, output: 965869568
10/19/2004 04:27:22 PM - PHPSVR: Poller[0] SERVER: E:\Apache2\htdocs\cacti\scripts\ss_host_disk.php ss_host_disk 64.xxx.xxx.xxx public 1 3 get total 5 output 965869568
10/19/2004 04:27:22 PM - PHPSVR: Poller[0] DEBUG: INCLUDE: 'E:\Apache2\htdocs\cacti\scripts\ss_host_disk.php' SCRIPT: 'ss_host_disk' CMD: '64.xxx.xxx.xxx public 1 3 get total 5'
10/19/2004 04:27:22 PM - CMDPHP: Poller[0] Host[3] SERVER: E:\Apache2\htdocs\cacti\scripts\ss_host_disk.php ss_host_disk 64.xxx.xxx.xxx public 1 3 get used 5, output: 153157632
10/19/2004 04:27:22 PM - PHPSVR: Poller[0] SERVER: E:\Apache2\htdocs\cacti\scripts\ss_host_disk.php ss_host_disk 64.xxx.xxx.xxx public 1 3 get used 5 output 153157632
10/19/2004 04:27:22 PM - PHPSVR: Poller[0] DEBUG: INCLUDE: 'E:\Apache2\htdocs\cacti\scripts\ss_host_disk.php' SCRIPT: 'ss_host_disk' CMD: '64.xxx.xxx.xxx public 1 3 get used 5'
10/19/2004 04:27:22 PM - CMDPHP: Poller[0] Host[3] SERVER: E:\Apache2\htdocs\cacti\scripts\ss_host_disk.php ss_host_disk 64.xxx.xxx.xxx public 1 3 get total 4, output: 12675153920
10/19/2004 04:27:22 PM - PHPSVR: Poller[0] SERVER: E:\Apache2\htdocs\cacti\scripts\ss_host_disk.php ss_host_disk 64.xxx.xxx.xxx public 1 3 get total 4 output 12675153920
10/19/2004 04:27:22 PM - PHPSVR: Poller[0] DEBUG: INCLUDE: 'E:\Apache2\htdocs\cacti\scripts\ss_host_disk.php' SCRIPT: 'ss_host_disk' CMD: '64.xxx.xxx.xxx public 1 3 get total 4'
10/19/2004 04:27:22 PM - CMDPHP: Poller[0] Host[3] SERVER: E:\Apache2\htdocs\cacti\scripts\ss_host_disk.php ss_host_disk 64.xxx.xxx.xxx public 1 3 get used 4, output: 652947456
10/19/2004 04:27:22 PM - PHPSVR: Poller[0] SERVER: E:\Apache2\htdocs\cacti\scripts\ss_host_disk.php ss_host_disk 64.xxx.xxx.xxx public 1 3 get used 4 output 652947456
10/19/2004 04:27:22 PM - PHPSVR: Poller[0] DEBUG: INCLUDE: 'E:\Apache2\htdocs\cacti\scripts\ss_host_disk.php' SCRIPT: 'ss_host_disk' CMD: '64.xxx.xxx.xxx public 1 3 get used 4'
10/19/2004 04:27:22 PM - CMDPHP: Poller[0] Host[3] SERVER: E:\Apache2\htdocs\cacti\scripts\ss_host_disk.php ss_host_disk 64.xxx.xxx.xxx public 1 3 get total 2, output: 7336914944
10/19/2004 04:27:22 PM - PHPSVR: Poller[0] SERVER: E:\Apache2\htdocs\cacti\scripts\ss_host_disk.php ss_host_disk 64.xxx.xxx.xxx public 1 3 get total 2 output 7336914944
10/19/2004 04:27:22 PM - PHPSVR: Poller[0] DEBUG: INCLUDE: 'E:\Apache2\htdocs\cacti\scripts\ss_host_disk.php' SCRIPT: 'ss_host_disk' CMD: '64.xxx.xxx.xxx public 1 3 get total 2'
10/19/2004 04:27:22 PM - CMDPHP: Poller[0] Host[3] SERVER: E:\Apache2\htdocs\cacti\scripts\ss_host_disk.php ss_host_disk 64.xxx.xxx.xxx public 1 3 get used 2, output: 1809788928
10/19/2004 04:27:22 PM - PHPSVR: Poller[0] SERVER: E:\Apache2\htdocs\cacti\scripts\ss_host_disk.php ss_host_disk 64.xxx.xxx.xxx public 1 3 get used 2 output 1809788928
10/19/2004 04:27:20 PM - PHPSVR: Poller[0] DEBUG: INCLUDE: 'E:\Apache2\htdocs\cacti\scripts\ss_host_disk.php' SCRIPT: 'ss_host_disk' CMD: '64.xxx.xxx.xxx public 1 3 get used 2'
10/19/2004 04:27:20 PM - CMDPHP: Poller[0] Host[3] RECACHE: Processing 3 items in the auto reindex cache for '64.xxx.xxx.xxx'.
10/19/2004 04:27:20 PM - CMDPHP: Poller[0] Host[3] SNMP: Host responded to SNMP
10/19/2004 04:27:20 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 216.xxx.xxx.xxx, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.5, output: 590589560
10/19/2004 04:27:20 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 216.xxx.xxx.xxx, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.5, output: 2000641376
10/19/2004 04:27:20 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 216.xxx.xxx.xxx, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.4, output: 68
10/19/2004 04:27:20 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 216.xxx.xxx.xxx, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.4, output: 0
10/19/2004 04:27:20 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 216.xxx.xxx.xxx, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.3, output: 1763664795
10/19/2004 04:27:20 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 216.xxx.xxx.xxx, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.3, output: 166843650
10/19/2004 04:27:20 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 216.xxx.xxx.xxx, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, output: 2204217779
10/19/2004 04:27:20 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 216.xxx.xxx.xxx, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, output: 3027022828
10/19/2004 04:27:20 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 216.xxx.xxx.xxx, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, output: 2204217577
10/19/2004 04:27:20 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 216.xxx.xxx.xxx, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, output: 3027022634
10/19/2004 04:27:20 PM - CMDPHP: Poller[0] Host[2] RECACHE: Processing 1 items in the auto reindex cache for '216.xxx.xxx.xxx'.
10/19/2004 04:27:20 PM - CMDPHP: Poller[0] Host[2] SNMP: Host responded to SNMP
10/19/2004 04:27:20 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
10/19/2004 04:27:20 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
10/19/2004 04:27:20 PM - PHPSVR: Poller[0] DEBUG: FILENM: e:\Apache2\htdocs\cacti\script_server.php
10/19/2004 04:27:20 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: e:/apache2/htdocs/cacti
10/19/2004 04:27:20 PM - PHPSVR: Poller[0] DEBUG: GETCWD: e:/apache2/htdocs/cacti
10/19/2004 04:27:20 PM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
Help with a script problem
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
for that host, use a blank community string.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Hi Witness,
Thanks for the reply.
Sorry, I did not explain myself, let me give it another shot. The format for the script is the following:
perl sb-mrtg.pl -i 10.x.x.x -c community -t e
and if I use a blank string for the community then the script will fail.
Somehow Cacti does not seem to recognize the script, any ideas of what is causing this behaveor?
Thanks a bunch for your help!
-Cesar
Thanks for the reply.
Sorry, I did not explain myself, let me give it another shot. The format for the script is the following:
perl sb-mrtg.pl -i 10.x.x.x -c community -t e
and if I use a blank string for the community then the script will fail.
Somehow Cacti does not seem to recognize the script, any ideas of what is causing this behaveor?
Thanks a bunch for your help!
-Cesar
Who is online
Users browsing this forum: No registered users and 2 guests