Cactid 0.8.6g Out

Important information about Cacti developments that all users should be interested in.

Moderators: Developers, Moderators

raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Cactid 0.8.6g Out

Post by raX »

After a good bit of testing and community feedback, Cactid version 0.8.6g has been released in the wild. A big thanks to TheWitness and Steve Friedl from unixwiz.net for making this release possible.

Notable changes in this version include fixes to multiple SNMP OID handling, concurrent script server processes, MySQL 5.x support, and massive portability optimizations to the code.

Be sure to read the notice on the downloads page before upgrading, or certain graphs may stop collecting data!

The complete changelog:

Code: Select all

-bug#0000609: console "error" messages should go to stderr instead of stdout
-bug#0000618/0000613: correct invalid assignment of session.community in snmp.c
-bug#0000629: correct issues with invalid unknown reaults when reducing MAX OID get size
-bug: correct issue where spike prevention logic was not being activated properly
-bug: correct issue where host reindex was not operating for uptime goes backwards reindex method
-bug: if sysUptime is queried for a host, only do it once
-bug: certain SNMP string responses where not being handled properly due to net-snmp bug
-bug: increase the allowable size of the logfile entry
-bug: change behavior of availability so that if SNMP and ICMP/UDP are selected, only one has to succeed
-bug: cleaned up implementation of multi SNMP OID get error checking logic
-bug: don't attempt to allocate a zero item array when a host has no polling items
-bug: correct string values returning as blank in *nix environments
-bug: correct issue where invalid SNMP OID results would cascade to subseqent SNMP OID calls for a host
-optimization: change logging logic to cleanup code and add varadic formatting
-optimization: complete audit of code for portability complements of Steve @ http://www.unixwiz.net
-optimization: documentation, documentation, documentation...
-feature: added command line argument handling including database overrides complements of Steve @ http://www.unixwiz.net
-feature: added multiple script server process feature to current version
-feature: added support for MySQL 5.x
-feature: added more verbose MySQL DEBUG logic
-Ian
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Re: Cactid 0.8.6g Out

Post by fmangeant »

raX wrote:After a good bit of testing and community feedback, Cactid version 0.8.6g has been released in the wild.
Hi Ian

running it with "--version" shows 0.8.6f :

Code: Select all

$ ./cactid --version
CACTID 0.8.6f  Copyright 2002-2005 by The Cacti Group

Usage: cactid [options] [firstid lastid]

Options:

  -h/--help          Show this brief help listing
  -f/--first=X       Start polling with host X
  -l/--last=X        End polling with host X
  -p/--poller=X      Poller ID = X
  -C/--conf=F        Read Cactid configuration from file F
  -O/--option=S:V    Override DB settings 'set' with value 'V'
  -R/--readonly      This Cactid run is readonly with respect to the database
  -S/--stdout        Logging is performed to the standard output
  -V/--verbosity=V   Set logging verbosity to <V>
  --snmponly         Only do SNMP polling: no script stuff

Either both of --first/--last must be provided, or neither can be,
and in their absense, all hosts are processed.

Without the --conf parameter, cactid searches for its cactid.conf
file in the usual places.

Verbosity is one of NONE/LOW/MEDIUM/HIGH/DEBUG or 1..5

Runtime options are read from the 'settings' table in the Cacti
database, but they can be overridden with the --option=S:V
parameter.

Cactid is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)
For more information, see http://www.cacti.net
Otherwise, it runs fine (on a new 0.8.6h + patches installation).

BTW : happy to see some new developpers and releases :)
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Would it be of any use, to mention Clearing Poller Cache after tweaking all those scripts as advised by http://cacti.net/cactid_download.php? Suppose, this will be needed?
Reinhard
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

What about scripts given by

Code: Select all

unix_disk.xml:  <script_path>perl |path_cacti|/scripts/query_unix_partitions.pl</script_path>
without full path? Suppose, they will need update as well?
Reinhard
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

lvm wrote:Would it be of any use, to mention Clearing Poller Cache after tweaking all those scripts as advised by http://cacti.net/cactid_download.php? Suppose, this will be needed?
Good idea. I have added a notice to the downloads page.

-Ian
User avatar
SJFriedl
Posts: 8
Joined: Sun Sep 04, 2005 11:45 am
Location: Tustin, California USA
Contact:

Post by SJFriedl »

roddie wrote:nft_popen.c:317: error: `SIGTERM' undeclared (first use in this function)
Edit nft_popen.c and add #include <signal.h> just after #include <unistd.h> and type "make"

Steve
User avatar
mahuani
Cacti User
Posts: 72
Joined: Tue Nov 01, 2005 2:10 pm
Location: Lafayette, LA
Contact:

Post by mahuani »

One thing that I see...

Code: Select all

01/14/2006 03:52:08 PM - CACTID: Poller[0] DEBUG: MySQL Insert ID '4': 'INSERT INTO poller_output (local_data_id,rrd_name,time,output) VALUES (13,'traffic_in','2006-01-14 15:52:02','422022937'),(13,'traffic_out','2006-01-14 15:52:02','306749201'),(38,'loadavg_1','2006-01-14 15:52:02','3.89'),(40,'loadavg_5','2006-01-14 15:52:02','4.06'),(39,'loadavg_15','2006-01-14 15:52:02','3.85'),(31,'cpu_user','2006-01-14 15:52:02','475912'),(29,'cpu_nice','2006-01-14 15:52:02','331'),(30,'cpu_system','2006-01-14 15:52:02','99395'),(54,'memTotalSwap','2006-01-14 15:52:02','15291576'),(23,'','2006-01-14 15:52:02','TotalAccesses:770 TotalkBytes:6892 CPULoad:.14257 Uptime:31311 ReqPerSec:.024592 BytesPerSec:225.397 BytesPerReq:9165.46 BusyWorkers:1 IdleWorkers:7'),(24,'','2006-01-14 15:52:02','TotalAccesses:771 TotalkBytes:6893 CPULoad:.14257 Uptime:31311 ReqPerSec:.0246239 BytesPerSec:225.43 BytesPerReq:9154.91 BusyWorkers:1 IdleWorkers:7'),(25,'','2006-01-14 15:52:02','TotalAccesses:772 TotalkBytes:6893 CPULoad:.14257 Uptime:31311 ReqPerSec:.0246559 BytesPerSec:225.43 BytesPerReq:9143.05 BusyWorkers:1 IdleWorkers:7'),(26,'','2006-01-14 15:52:02','TotalAccesses:773 TotalkBytes:6894 CPULoad:.14257 Uptime:31311 ReqPerSec:.0246878 BytesPerSec:225.462 BytesPerReq:9132.54 BusyWorkers:1 IdleWorkers:7'),(27,'','2006-01-14 15:52:02','TotalAccesses:774 TotalkBytes:6894 CPULoad:.142597 Uptime:31312 ReqPerSec:.024719 BytesPerSec:225.455 BytesPerReq:9120.74 BusyWorkers:1 IdleWorkers:7'),(28,'','2006-01-14 15:52:02','TotalAccesses:775 TotalkBytes:6895 CPULoad:.142597 Uptime:31312 ReqPerSec:.0247509 BytesPerSec:225.488 BytesPerReq:9110.3 BusyWorkers:1 IdleWorkers:7'),(3,'mem_buffers','2006-01-14 15:52:02','55472'),(4,'mem_swap','2006-01-14 15:52:02','15291576'),(5,'','2006-01-14 15:52:02','1min:3.89 5min:4.06 10min:3.85'),(14,'random_number','2006-01-14 15:52:02','9'),(7,'proc','2006-01-14 15:52:02','159'),(18,'','2006-01-14 15:52:02','used:0 available:0'),(16,'','2006-01-14 15:52:02','change_db:564 delete:2656 insert:338 select:25472 update:945'),(43,'','2006-01-14 15:52:02','change_db:564 delete:2656 insert:338 select:25474 update:945'),(17,'','2006-01-14 15:52:02','delete:2703 read_first:5550 read_key:37582 read_next:36200 read_prev:0 read_rnd:5871 read_rnd_next:159184 update:904 write:9186'),(44,'','2006-01-14 15:52:02','delete:2703 read_first:5550 read_key:37582 read_next:36200 read_prev:0 read_rnd:5871 read_rnd_next:159184 update:904 write:9186'),(33,'','2006-01-14 15:52:02','file_reads:41 file_writes:8 file_fsyncs:8 insert_buffer_inserts:0 insert_buffer_merged:0 insert_buffer_merges:0 log_writes:11 buffer_pool_size:1024 buffer_free_pages:989 buffer_database_pages:35 buffer_modified_pages:0 buffer_hit_rate: queries_inside:0 queries_queue:0 rows_inserted:0 rows_updated:0 rows_deleted:0 rows_read:0 spin_waits:12 spin_rounds:40 os_waits:6'),(34,'','2006-01-14 15:52:02','file_reads:41 file_writes:8 file_fsyncs:8 insert_buffer_inserts:0 insert_buffer_merged:0 insert_buffer_merges:0 log_writes:11 buffer_pool_size:1024 buffer_free_pages:989 buffer_database_pages:35 buffer_modified_pages:0 buffer_hit_rate: queries_inside:0 queries_queue:0 rows_inserted:0 rows_updated:0 rows_deleted:0 rows_read:0 spin_waits:12 spin_rounds:40 os_waits:6'),(35,'','2006-01-14 15:52:02','file_reads:41 file_writes:8 file_fsyncs:8 insert_buffer_inserts:0 insert_buffer_merged:0 insert_buffer_merges:0 log_writes:11 buffer_pool_size:1024 buffer_free_pages:989 buffer_database_pages:35 buffer_modified_pages:0 buffer_hit_rate: queries_inside:0 queries_queue:0 rows_inserted:0 rows_updated:0 rows_deleted:0 rows_read:0 spin_waits:12 spin_rounds:40 os_waits:6'),(36,'','2006-01-14 15:52:02','file_reads:41 file_writes:8 file_fsyncs:8 insert_buffer_inserts:0 insert_buffer_merged:0 insert_buffer_merges:0 log_writes:11 buffer_pool_size:1024 buffer_free_pages:989 buffer_database_pages:35 buffer_modified_pages:0 buffer_hit_rate: queries_inside:0 queries_queue:0 rows_inserted:0 rows_updated:0 rows_deleted:0 rows_read:0 spin_waits:12 spin_rounds:40 os_waits:6'),(37,'','2006-01-14 15:52:02','file_reads:41 file_writes:8 file_fsyncs:8 insCACTID: Poller[0] 01/14/2006 03:52:08 PM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating
01/14/2006 03:52:08 PM - SYSTEM STATS: Time:187.1612 Method:cactid Processes:2 Threads:30 Hosts:2 HostsPerProcess:1 DataSources:53 RRDsProcessed:0
01/14/2006 03:52:08 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/cacti.mahuani.intercosmos.net/htdocs/cacti/poller_commands.php]
01/14/2006 03:52:08 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/cacti.mahuani.intercosmos.net/htdocs/cacti/poller_export.php]
01/14/2006 03:52:08 PM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating

Does anyone know what the phpsvr is expecting at this point???

Oh, and my graphs stopped updating.... :(

Update... Don't know if this might be of inportance but this is what I'm also getting in my logs over and over again..

Code: Select all

01/14/2006 04:54:42 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_id,end_time from poller_time where poller_id = 0"
01/14/2006 04:54:42 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select  poller_output.output,  poller_output.time,  poller_output.local_data_id,  poller_item.rrd_path,  poller_item.rrd_name,  poller_item.rrd_num  from (poller_output,poller_item)  where (poller_output.local_data_id=poller_item.local_data_id and poller_output.rrd_name=poller_item.rrd_name)"
If I run the queries from the command line I get.

Code: Select all

mysql> select poller_id,end_time from poller_time where poller_id = 0 \G ;
*************************** 1. row ***************************
poller_id: 0
 end_time: 2006-01-14 16:55:03
*************************** 2. row ***************************
poller_id: 0
 end_time: 2006-01-14 16:55:03
2 rows in set (0.00 sec)
For the first and

Code: Select all

Empty set (0.00 sec)
for the second

Versions
cacti - 0.8.6h
cactid - 0.8.6g
mysql - 4.1.16
php - 4.4.1
User avatar
mahuani
Cacti User
Posts: 72
Joined: Tue Nov 01, 2005 2:10 pm
Location: Lafayette, LA
Contact:

Post by mahuani »

Alright... Same problem on my production box. I had my poller run cactid once w/ the new cactid and I had the same problem.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

mahuani,

Cactid is abending for some reason. Can you please state your versions of the following:

MySQL (Server and API)
Net-SNMP (API)
PHP
OS

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?
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Yes, someone pointed that out to me after the fact. I apologize for not getting that on the first try. If we do repackage it, I will make sure that both of those things are incorporated.

-Ian
pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

PHP Script Server communications lost

Post by pepj »

Hi

First :
Why cactid say "Version 0.8.6f starting" ?
D:\Programme\Cactideamon>D:\Programme\Cactideamon\cactid-0.8.6.g.exe
CACTID: Using cactid config file [cactid.conf]
CACTID: Version 0.8.6f starting

On Windows 2003
My problem ---->
In the log file:
01/20/2006 02:14:12 PM - CACTID: Poller[0] ERROR: SS[0] PHP Script Server communications lost.

I also use "PING - Advanced Ping v1.3" with script server PHP
I tried in input string to put:
<path_cacti>/scripts/ss_fping.php ss_fping <hostname> <attempts> <protocol> <port>
and also
D:/Programme/Cacti-NetworkMonitoring/scripts/ss_fping.php ss_fping <hostname> <attempts> <protocol> <port>

But I did not received datas for Advanced Ping

any idea?
Jean-Michel
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005
User avatar
SJFriedl
Posts: 8
Joined: Sun Sep 04, 2005 11:45 am
Location: Tustin, California USA
Contact:

Re: PHP Script Server communications lost

Post by SJFriedl »

pepj wrote:Why cactid say "Version 0.8.6f starting" ?
D:\Programme\Cactideamon>D:\Programme\Cactideamon\cactid-0.8.6.g.exe
Packaging bug- it's 0.8.6g
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please goto Utilities->View Poller Cache and look for "Action: 2". There you will find the script server information. Please post your output.

If you are running *nix environment, you poller cron job must be running as root in order to utilize ICMP pings do to the inability to create raw sockets in PHP. If you change availability to SNMP only, you may have better luck. Then your pings will be snmp pings.

The problem is that seteuid only exists in if you utilize the POSIX PHP extension, which the PHP group recommends against for security reasons.

However, the "script server communications lost" may also be indicative of an issue with the script server which would result in the Advance Ping breaking. You should run the poller 1 time in DEBUG and post that output as well.

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?
pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

script server communications lost

Post by pepj »

Hi
TheWitness wrote:Please goto Utilities->View Poller Cache and look for "Action: 2". There you will find the script server information. Please post your output.

However, the "script server communications lost" may also be indicative of an issue with the script server which would result in the Advance Ping breaking. You should run the poller 1 time in DEBUG and post that output as well.

TheWitness
It is window2003.
I've annexed the debug and poller output for one host
NO MORE DEBUG FILE ATTACHED (my account reached the quotas) problem solved in http://bugs.cacti.net/main_page.php

Thanks
Last edited by pepj on Fri Apr 14, 2006 5:00 am, edited 1 time in total.
Jean-Michel
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Need more of the log. Also, what versions of the various code are you running: cygwin, mysql, php, net-snmp libraries, etc?

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests