hi,
i`ve added some switches and i am using snmpv3. therefor i changed my snmp.php and it seams to work --> i get snmp information at every device, but the status is unknown and no rrd files are created.
any idea or help?
cacti log says:
01/26/2007 12:20:01 PM - SYSTEM STATS: Time:1.0590 Method:cmd.php Processes:1 Threads:N/A Hosts:5 HostsPerProcess:5 DataSources:5 RRDsProcessed:5
01/26/2007 12:20:00 PM - CMDPHP: Poller[0] Time: 0.1866 s, Theads: N/A, Hosts: 4
01/26/2007 12:20:00 PM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl /usr/local/apache2/htdocs/cacti/scripts/unix_processes.pl, output: 0
01/26/2007 12:20:00 PM - CMDPHP: Poller[0] Host[1] DS[6] CMD: perl /usr/local/apache2/htdocs/cacti/scripts/unix_users.pl , output: 1
01/26/2007 12:20:00 PM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl /usr/local/apache2/htdocs/cacti/scripts/loadavg_multi.pl, output: 1min:0.02 5min:0.02 10min:0.02
01/26/2007 12:20:00 PM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl /usr/local/apache2/htdocs/cacti/scripts/linux_memory.pl SwapFree:, output: U
01/26/2007 12:20:00 PM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid. Partial Result:
01/26/2007 12:20:00 PM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl /usr/local/apache2/htdocs/cacti/scripts/linux_memory.pl MemFree:, output: U
01/26/2007 12:20:00 PM - CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD not valid. Partial Result:
01/26/2007 12:20:00 PM - CMDPHP: Poller[0] Host[1] SNMP: Host responded to SNMP
01/26/2007 12:20:00 PM - CMDPHP: Poller[0] WARNING: sockets support not enabled in PHP, falling back to SNMP ping
what means this warnings???
bye
problem with unknown status
Moderators: Developers, Moderators
-
- Posts: 24
- Joined: Mon Jul 24, 2006 9:11 am
- Location: Germany
- Contact:
That sockets message comes from PHP. In your php.ini uncomment the next line:
#extension=php_sockets.dll
This will fix the sockets problem...
The other warnings:
The scripts deliver an other output or an invalid output than the data source expects to get, (I believe that's it). If you run the script manualy... Do you get any results?
#extension=php_sockets.dll
This will fix the sockets problem...
The other warnings:
The scripts deliver an other output or an invalid output than the data source expects to get, (I believe that's it). If you run the script manualy... Do you get any results?
-
- Posts: 24
- Joined: Mon Jul 24, 2006 9:11 am
- Location: Germany
- Contact:
- TheWitness
- Developer
- Posts: 17061
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Set logging to DEBUG and run the following from the command line:
php <path_cacti>/cmd.php
Post the STDOUT from the command. Oh, and with cmd.php, you must first create a graph to get the status to change from "unknown" to something else.
TheWitness
php <path_cacti>/cmd.php
Post the STDOUT from the command. Oh, and with cmd.php, you must first create a graph to get the status to change from "unknown" to something else.
TheWitness
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?
-
- Posts: 24
- Joined: Mon Jul 24, 2006 9:11 am
- Location: Germany
- Contact:
bad, i forgot to create graphs at first, now status changes to up and i have a cpu graph for each switch. but nothing more ... no interface statistics etc. available. here my php ../cmd.php debug:
root@prag # php /usr/local/apache2/htdocs/cacti/cmd.php
01/26/2007 01:23:45 PM - CMDPHP: Poller[0] Host[1] SNMP: Host responded to SNMP
01/26/2007 01:23:45 PM - CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD not valid. Partial Result:
01/26/2007 01:23:45 PM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl /usr/local/apache2/htdocs/cacti/scripts/linux_memory.pl MemFree:, output: U
01/26/2007 01:23:45 PM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid. Partial Result:
01/26/2007 01:23:45 PM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl /usr/local/apache2/htdocs/cacti/scripts/linux_memory.pl SwapFree:, output: U
01/26/2007 01:23:45 PM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl /usr/local/apache2/htdocs/cacti/scripts/loadavg_multi.pl, output: 1min:0.04 5min:0.
05 10min:0.04
01/26/2007 01:23:45 PM - CMDPHP: Poller[0] Host[1] DS[6] CMD: perl /usr/local/apache2/htdocs/cacti/scripts/unix_users.pl , output: 1
01/26/2007 01:23:45 PM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl /usr/local/apache2/htdocs/cacti/scripts/unix_processes.pl, output: 64
01/26/2007 01:23:45 PM - CMDPHP: Poller[0] Host[2] SNMP: Device does not require SNMP
01/26/2007 01:23:45 PM - CMDPHP: Poller[0] Host[2] No host availability check possible for '10.52.252.66'.
01/26/2007 01:23:46 PM - CMDPHP: Poller[0] Host[2] DS[10] SNMP: v3: 10.52.252.66, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.2.1.58.0, output: 4
01/26/2007 01:23:46 PM - CMDPHP: Poller[0] Host[3] SNMP: Device does not require SNMP
01/26/2007 01:23:46 PM - CMDPHP: Poller[0] Host[3] No host availability check possible for '10.52.252.65'.
01/26/2007 01:23:46 PM - CMDPHP: Poller[0] Host[3] DS[9] SNMP: v3: 10.52.252.65, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.2.1.58.0, output: 2
01/26/2007 01:23:46 PM - CMDPHP: Poller[0] Host[4] SNMP: Device does not require SNMP
01/26/2007 01:23:46 PM - CMDPHP: Poller[0] Host[4] No host availability check possible for '10.52.252.77'.
01/26/2007 01:23:46 PM - CMDPHP: Poller[0] Host[4] DS[8] SNMP: v3: 10.52.252.77, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.2.1.58.0, output: 0
01/26/2007 01:23:46 PM - CMDPHP: Poller[0] Time: 0.8337 s, Theads: N/A, Hosts: 4
thx for help
root@prag # php /usr/local/apache2/htdocs/cacti/cmd.php
01/26/2007 01:23:45 PM - CMDPHP: Poller[0] Host[1] SNMP: Host responded to SNMP
01/26/2007 01:23:45 PM - CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD not valid. Partial Result:
01/26/2007 01:23:45 PM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl /usr/local/apache2/htdocs/cacti/scripts/linux_memory.pl MemFree:, output: U
01/26/2007 01:23:45 PM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid. Partial Result:
01/26/2007 01:23:45 PM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl /usr/local/apache2/htdocs/cacti/scripts/linux_memory.pl SwapFree:, output: U
01/26/2007 01:23:45 PM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl /usr/local/apache2/htdocs/cacti/scripts/loadavg_multi.pl, output: 1min:0.04 5min:0.
05 10min:0.04
01/26/2007 01:23:45 PM - CMDPHP: Poller[0] Host[1] DS[6] CMD: perl /usr/local/apache2/htdocs/cacti/scripts/unix_users.pl , output: 1
01/26/2007 01:23:45 PM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl /usr/local/apache2/htdocs/cacti/scripts/unix_processes.pl, output: 64
01/26/2007 01:23:45 PM - CMDPHP: Poller[0] Host[2] SNMP: Device does not require SNMP
01/26/2007 01:23:45 PM - CMDPHP: Poller[0] Host[2] No host availability check possible for '10.52.252.66'.
01/26/2007 01:23:46 PM - CMDPHP: Poller[0] Host[2] DS[10] SNMP: v3: 10.52.252.66, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.2.1.58.0, output: 4
01/26/2007 01:23:46 PM - CMDPHP: Poller[0] Host[3] SNMP: Device does not require SNMP
01/26/2007 01:23:46 PM - CMDPHP: Poller[0] Host[3] No host availability check possible for '10.52.252.65'.
01/26/2007 01:23:46 PM - CMDPHP: Poller[0] Host[3] DS[9] SNMP: v3: 10.52.252.65, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.2.1.58.0, output: 2
01/26/2007 01:23:46 PM - CMDPHP: Poller[0] Host[4] SNMP: Device does not require SNMP
01/26/2007 01:23:46 PM - CMDPHP: Poller[0] Host[4] No host availability check possible for '10.52.252.77'.
01/26/2007 01:23:46 PM - CMDPHP: Poller[0] Host[4] DS[8] SNMP: v3: 10.52.252.77, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.2.1.58.0, output: 0
01/26/2007 01:23:46 PM - CMDPHP: Poller[0] Time: 0.8337 s, Theads: N/A, Hosts: 4
thx for help
- TheWitness
- Developer
- Posts: 17061
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Everything looks good there. You should be Ok unless you have a permissions problem. See Gandalf's NaN debugging link.
TheWitness
TheWitness
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?
try to check php for supporting socket, in shell root@shell> php -m
[PHP Modules]
libxml
mcrypt
mysql
sockets
...
...
etc
If, no socket available, maybe u can recompile php with --enable-sockets
restarting apache, and please check cacti again.
so far, i have same problem, and resolved by that step.
rgrd
[PHP Modules]
libxml
mcrypt
mysql
sockets
...
...
etc
If, no socket available, maybe u can recompile php with --enable-sockets
restarting apache, and please check cacti again.
so far, i have same problem, and resolved by that step.
rgrd
Who is online
Users browsing this forum: No registered users and 5 guests