Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Cactid 0.8.6g Out
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Announcements
Author Message
raX
Lead Developer


Joined: 13 Oct 2001
Posts: 2234
Location: Carlisle, PA

PostPosted: Thu Jan 12, 2006 9:27 pm    Post subject: Cactid 0.8.6g Out Reply with quote

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:
-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
Back to top
fmangeant
Cacti Guru User


Joined: 19 Sep 2003
Posts: 2325
Location: Sophia-Antipolis, France

PostPosted: Fri Jan 13, 2006 4:13 am    Post subject: Re: Cactid 0.8.6g Out Reply with quote

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:
$ ./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
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12295
Location: Muenster, Germany

PostPosted: Fri Jan 13, 2006 3:50 pm    Post subject: Reply with quote

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
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12295
Location: Muenster, Germany

PostPosted: Fri Jan 13, 2006 4:09 pm    Post subject: Reply with quote

What about scripts given by
Code:
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
Back to top
roddie
Cacti User


Joined: 10 Feb 2004
Posts: 90
Location: Frisco, TX

PostPosted: Fri Jan 13, 2006 4:22 pm    Post subject: Reply with quote

Ian et al,

I'm getting a make error under Solaris 8 - Any ideas?

Code:
gcc -DHAVE_CONFIG_H -I. -I. -I./config   -I/usr/local/include/freetype2 -I/usr/local/include/libart-2.0 -I/usr/local/include/cgilib-0.5 -D_POSIX_PTHREAD_SEMANTICS  -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/mysql/include -g -O2 -c `test -f 'nft_popen.c' || echo './'`nft_popen.c
nft_popen.c: In function `nft_pclose':
nft_popen.c:317: error: `SIGTERM' undeclared (first use in this function)
nft_popen.c:317: error: (Each undeclared identifier is reported only once
nft_popen.c:317: error: for each function it appears in.)
make: *** [nft_popen.o] Error 1


configure ran fine with no errors - I saw this before while testing with Larry a while back, but I don't remember the solution.

Thanks!
Roddie
Back to top
raX
Lead Developer


Joined: 13 Oct 2001
Posts: 2234
Location: Carlisle, PA

PostPosted: Fri Jan 13, 2006 8:46 pm    Post subject: Reply with quote

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
Back to top
SJFriedl



Joined: 04 Sep 2005
Posts: 8
Location: Tustin, California USA

PostPosted: Fri Jan 13, 2006 10:11 pm    Post subject: Reply with quote

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
Back to top
roddie
Cacti User


Joined: 10 Feb 2004
Posts: 90
Location: Frisco, TX

PostPosted: Fri Jan 13, 2006 10:18 pm    Post subject: Reply with quote

Thanks, Steve - Some Solaris-hater in the IRC channel told me the same thing

All is good now, let's just see it perform.

R.
Back to top
mahuani
Cacti User


Joined: 01 Nov 2005
Posts: 66
Location: New Orleans, LA

PostPosted: Sat Jan 14, 2006 4:55 pm    Post subject: Reply with quote

One thing that I see...

Code:
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:
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:
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:

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
Back to top
mahuani
Cacti User


Joined: 01 Nov 2005
Posts: 66
Location: New Orleans, LA

PostPosted: Sat Jan 14, 2006 8:00 pm    Post subject: Reply with quote

Alright... Same problem on my production box. I had my poller run cactid once w/ the new cactid and I had the same problem.
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9697
Location: MI, USA

PostPosted: Sun Jan 15, 2006 10:17 pm    Post subject: Reply with quote

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
Back to top
roddie
Cacti User


Joined: 10 Feb 2004
Posts: 90
Location: Frisco, TX

PostPosted: Tue Jan 17, 2006 10:05 am    Post subject: Reply with quote

Ian,

I guess you are the man for this - The cactid 0.8.6g tarball which is posted on the downloads page doesn't seem to have had autorun run on it ahead of packaging and is still reporting itself as version 0.8.6f after compilation.

Also, you might want to add the "#include <signal.h>" to nft_popen.c if you're going to re-release it.

Thanks,
Roddie
Back to top
raX
Lead Developer


Joined: 13 Oct 2001
Posts: 2234
Location: Carlisle, PA

PostPosted: Tue Jan 17, 2006 1:24 pm    Post subject: Reply with quote

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
Back to top
pepj
Cacti User


Joined: 29 Sep 2005
Posts: 288
Location: switzerland

PostPosted: Fri Jan 20, 2006 11:44 am    Post subject: PHP Script Server communications lost Reply with quote

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?
Back to top
SJFriedl



Joined: 04 Sep 2005
Posts: 8
Location: Tustin, California USA

PostPosted: Fri Jan 20, 2006 12:36 pm    Post subject: Re: PHP Script Server communications lost Reply with quote

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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Announcements All times are GMT - 5 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 



Powered by phpBB © 2001, 2005 phpBB Group