cacti first install, no rra/ files and no graphs
Moderators: Developers, Moderators
cacti first install, no rra/ files and no graphs
Hi all I am installing cacti on openbsd 3.6.
I've create devices and graphs.
Under console/utilities/view poller cache I can see things like:
....
Data Source: cisco 827 - garagegiaco - 5 Minute CPU
RRD: /var/www/htdocs/cacti-0.8.6b/rra/cisco_827_garagegiaco_5min_cpu_12.rrd
Action: 0, OID: .1.3.6.1.4.1.9.2.1.58.0 (Host: 81.*.*.*, Community: public)
.......
in /var/www/htdocs/cacti/rra/ I've only one file called filename:
$ cat filename
[15-Nov-2004 13:25:08] PHP Notice: Undefined variable: polling_items in /var/www/htdocs/cacti-0.8.6b/cmd.php on line 97
cacti.log is empty
rra/ and log/ are chowned by the user who launch
*/5 * * * * /usr/local/bin/php /var/www/htdocs/cacti/poller.php > dev/null 2>&1
Any advice ?
thanks
Giacomo
I've create devices and graphs.
Under console/utilities/view poller cache I can see things like:
....
Data Source: cisco 827 - garagegiaco - 5 Minute CPU
RRD: /var/www/htdocs/cacti-0.8.6b/rra/cisco_827_garagegiaco_5min_cpu_12.rrd
Action: 0, OID: .1.3.6.1.4.1.9.2.1.58.0 (Host: 81.*.*.*, Community: public)
.......
in /var/www/htdocs/cacti/rra/ I've only one file called filename:
$ cat filename
[15-Nov-2004 13:25:08] PHP Notice: Undefined variable: polling_items in /var/www/htdocs/cacti-0.8.6b/cmd.php on line 97
cacti.log is empty
rra/ and log/ are chowned by the user who launch
*/5 * * * * /usr/local/bin/php /var/www/htdocs/cacti/poller.php > dev/null 2>&1
Any advice ?
thanks
Giacomo
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Are you running the CGI version of PHP? If you are, make sure you make a separate php-cli version and then schedule using it. Also, change the poller to the cli version of PHP in "Settings->Paths". This should correct your problem. We must have a snippet of code that it not instructing CGI to operate in CLI mode.
To determine if you are running PHP CGI mode, run the following command:
php -v
Post your findings please.
TheWitness
To determine if you are running PHP CGI mode, run the following command:
php -v
Post your findings please.
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?
TheWitness wrote:Are you running the CGI version of PHP? If you are, make sure you make a separate php-cli version and then schedule using it. Also, change the poller to the cli version of PHP in "Settings->Paths". This should correct your problem. We must have a snippet of code that it not instructing CGI to operate in CLI mode.
To determine if you are running PHP CGI mode, run the following command:
php -v
Post your findings please.
TheWitness
hi
# php -v
PHP 4.3.8 (cli) (built: Nov 14 2004 03:11:01)
Sorry I didn't understand if I need php-cgi or php-cli.
Giacomo
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Ok, goto "Settings->General" and set your logging level to DEBUG. Then disable your CRON job and open a shell window on the server. From there, run "php <webroot>/cacti/poller.php" and post your output.
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?
hi the witness
#php /var/www/htdocs/cacti/poller.php
11/15/2004 06:57:28 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/bin/php, ARGS: -q /var/www/htdocs/cacti-0.8.6b/cmd.php 0 7]
11/15/2004 06:57:28 PM - SYSTEM STATS: Time: 0.4537 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 3, Hosts/Process: 3
while in the system log it appears:
Nov 15 18:58:30 mumrath Cacti Logging[30990]: 11/15/2004 06:58:30 PM - CMDPHP: Poller[0] ERROR: Invalid Number of Arguments. You must specify 0 or 2 arguments.
Nov 15 18:58:30 mumrath Cacti Logging[30990]: 11/15/2004 06:58:30 PM - CMDPHP: Poller[0] ERROR: Either there are no items in the cache or polling is disabled
thanks again for the help
Giacomo
#php /var/www/htdocs/cacti/poller.php
11/15/2004 06:57:28 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/bin/php, ARGS: -q /var/www/htdocs/cacti-0.8.6b/cmd.php 0 7]
11/15/2004 06:57:28 PM - SYSTEM STATS: Time: 0.4537 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 3, Hosts/Process: 3
while in the system log it appears:
Nov 15 18:58:30 mumrath Cacti Logging[30990]: 11/15/2004 06:58:30 PM - CMDPHP: Poller[0] ERROR: Invalid Number of Arguments. You must specify 0 or 2 arguments.
Nov 15 18:58:30 mumrath Cacti Logging[30990]: 11/15/2004 06:58:30 PM - CMDPHP: Poller[0] ERROR: Either there are no items in the cache or polling is disabled
thanks again for the help
Giacomo
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Sorry,
Run "php <webroot>/cacti/cmd.php" and post results. Thanks, TW
Run "php <webroot>/cacti/cmd.php" and post results. Thanks, TW
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?
no prob
#!/usr/bin/php -q
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[1] PING: Host is Alive
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[1] SNMP: SNMP not performed due to setting or ping result.
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[1] CMD: perl /var/www/htdocs/cacti-0.8.6b/scripts/linux_memory.pl MemFree:, output: U
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[1] CMD: perl /var/www/htdocs/cacti-0.8.6b/scripts/linux_memory.pl SwapFree:, output: U
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[1] CMD: perl /var/www/htdocs/cacti-0.8.6b/scripts/loadavg_multi.pl, output: U
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[1] CMD: perl /var/www/htdocs/cacti-0.8.6b/scripts/unix_users.pl, output: U
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[1] CMD: perl /var/www/htdocs/cacti-0.8.6b/scripts/unix_processes.pl, output: U
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[7] PING: Host is Alive
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[7] SNMP: Host responded to SNMP
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[7] RECACHE: Processing 1 items in the auto reindex cache for '81.*.*.*'.
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[7] SNMP: v1: 81.*.*.*, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.2.1.58.0, output: 5
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[7] SNMP: v1: 81.*.*.*, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, output: 4019662198
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[7] SNMP: v1: 81.*.*.*, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, output: 1525053872
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[7] SNMP: v1: 81.*.*.*, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, output: 1548859034
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[7] SNMP: v1: 81.*.*.*, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, output: 4037432657
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Time: 0.5030 s, Theads: N/A, Hosts: 2
#!/usr/bin/php -q
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[1] PING: Host is Alive
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[1] SNMP: SNMP not performed due to setting or ping result.
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[1] CMD: perl /var/www/htdocs/cacti-0.8.6b/scripts/linux_memory.pl MemFree:, output: U
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[1] CMD: perl /var/www/htdocs/cacti-0.8.6b/scripts/linux_memory.pl SwapFree:, output: U
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[1] CMD: perl /var/www/htdocs/cacti-0.8.6b/scripts/loadavg_multi.pl, output: U
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[1] CMD: perl /var/www/htdocs/cacti-0.8.6b/scripts/unix_users.pl, output: U
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[1] CMD: perl /var/www/htdocs/cacti-0.8.6b/scripts/unix_processes.pl, output: U
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[7] PING: Host is Alive
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[7] SNMP: Host responded to SNMP
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[7] RECACHE: Processing 1 items in the auto reindex cache for '81.*.*.*'.
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[7] SNMP: v1: 81.*.*.*, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.2.1.58.0, output: 5
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[7] SNMP: v1: 81.*.*.*, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, output: 4019662198
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[7] SNMP: v1: 81.*.*.*, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, output: 1525053872
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[7] SNMP: v1: 81.*.*.*, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, output: 1548859034
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Host[7] SNMP: v1: 81.*.*.*, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, output: 4037432657
11/15/2004 11:01:37 PM - CMDPHP: Poller[0] Time: 0.5030 s, Theads: N/A, Hosts: 2
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
First, you need to run the following from the command line and insure that they function:
perl /var/www/htdocs/cacti-0.8.6b/scripts/linux_memory.pl MemFree
perl /var/www/htdocs/cacti-0.8.6b/scripts/linux_memory.pl SwapFree
perl /var/www/htdocs/cacti-0.8.6b/scripts/unix_users.pl
perl /var/www/htdocs/cacti-0.8.6b/scripts/unix_processes.pl
Then, run poller.php in DEBUG from the command line and post your results.
TheWitness
perl /var/www/htdocs/cacti-0.8.6b/scripts/linux_memory.pl MemFree
perl /var/www/htdocs/cacti-0.8.6b/scripts/linux_memory.pl SwapFree
perl /var/www/htdocs/cacti-0.8.6b/scripts/unix_users.pl
perl /var/www/htdocs/cacti-0.8.6b/scripts/unix_processes.pl
Then, run poller.php in DEBUG from the command line and post your results.
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?
I don't need localhost graphs, I need only routers graphs.
the rra/ dir continue to be empty, ther is only the file called filename, and in the in side there are those errors:
[15-Nov-2004 23:01:37] PHP Warning: shell_exec(): Cannot execute using backquotes in Safe Mode in /var/www/htdocs/cacti-0.8.6b/lib/poller.php on line 32
[15-Nov-2004 23:01:37] PHP Warning: socket_set_option() unable to set socket option [33]: Numerical argument out of domain in /var/www/htdocs/cacti-0.8.6b/lib/ping.php on line 217
thanks for the help
Giacomo
the rra/ dir continue to be empty, ther is only the file called filename, and in the in side there are those errors:
[15-Nov-2004 23:01:37] PHP Warning: shell_exec(): Cannot execute using backquotes in Safe Mode in /var/www/htdocs/cacti-0.8.6b/lib/poller.php on line 32
[15-Nov-2004 23:01:37] PHP Warning: socket_set_option() unable to set socket option [33]: Numerical argument out of domain in /var/www/htdocs/cacti-0.8.6b/lib/ping.php on line 217
thanks for the help
Giacomo
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
You need to change the settings in you PHP.INI file to turn OFF Save mode:
TheWitness15-Nov-2004 23:01:37] PHP Warning: shell_exec(): Cannot execute using backquotes in Safe Mode in /var/www/htdocs/cacti-0.8.6b/lib/poller.php on line 32
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?
Who is online
Users browsing this forum: No registered users and 7 guests