Cactid processes climbing and gaps in graphs

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

User avatar
lard
Cacti User
Posts: 165
Joined: Wed Jul 20, 2005 10:48 am
Location: UK - Cambridge

Post by lard »

Hi,

The only non-standard script in my data input is Advanced Ping v 1.3 :roll:

Could it be this? I knew there was a problem with the smokeping template as there was a monster thread on it but this was was deemed as fixed....

perhaps I will disable the graphs that use this and see if things improve! - I'll let you know if they do,

Thanks,

Lard
---- lard007skype ----
User avatar
lard
Cacti User
Posts: 165
Joined: Wed Jul 20, 2005 10:48 am
Location: UK - Cambridge

Post by lard »

Hi,

I completely removed the advanced ping template, data sources and script but unfortunately am still getting the following script server error:

12/01/2005 10:23:13 AM - SYSTEM STATS: Time:12.9215 Method:cactid Processes:1 Threads:10 Hosts:178 HostsPerProcess:178 DataSources:8810 RRDsProcessed:1035
12/01/2005 10:23:07 AM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating
12/01/2005 10:23:06 AM - CACTID: Poller[0] Host[49] DS[5464] WARNING: Result from SNMP not valid. Partial Result: ...
12/01/2005 10:23:06 AM - CACTID: Poller[0] Host[80] DS[2379] WARNING: Result from SNMP not valid. Partial Result: ...
12/01/2005 10:23:05 AM - CACTID: Poller[0] Host[49] DS[5436] WARNING: Result from SNMP not valid. Partial Result: ...
12/01/2005 10:23:02 AM - CACTID: Poller[0] Host[3] DS[27] WARNING: Result from SNMP not valid. Partial Result: ...
12/01/2005 10:23:02 AM - CACTID: Poller[0] Host[3] DS[26] WARNING: Result from SNMP not valid. Partial Result: ...

I've just realised (bit slow today) that this would explain the gaps in my graphing as the polling seems to stop once the php error kicks in - any more info required for this?

Looking at the input methods this was the only script server script?

Thanks,

Lard

Edit> Whoops - clearing the poller cache would be a good idea! - I'll update if a while and see if this solves it :-?
---- lard007skype ----
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please post a few lines from your poller cache for "Action: 2". Also, from the Cacti directory, please run:

php scripts/ss_fping.php <hostname> <ping_count> ICMP

Post the output.

Also, please try running the script_server in debug mode. From the cacti directory:

php script_server.php
<path_cacti>/scripts/ss_fping.php ss_fping <hostname> <ping_count> ICMP
quit

You should get output and no warnings.

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?
User avatar
lard
Cacti User
Posts: 165
Joined: Wed Jul 20, 2005 10:48 am
Location: UK - Cambridge

Post by lard »

Hello,

The action 2 output from the poller cache:

Data Source: rmc-nt11 - Used Space - D: Label:Swap Serial Number c
RRD: E:\Apache2\htdocs\cacti\rra\rmcnt11_hdd_total_29.rrd
Action: 2, Script: E:\Apache2\htdocs\cacti\scripts\ss_host_disk.php ss_host_disk hhhhhhh 3 1:161:500:rmc:::MD5::[None] get used 2
Data Source: rmc-nt11 - Used Space - D: Label:Swap Serial Number c
RRD: E:\Apache2\htdocs\cacti\rra\rmcnt11_hdd_total_29.rrd
Action: 2, Script: E:\Apache2\htdocs\cacti\scripts\ss_host_disk.php ss_host_disk hjhhhhhhhh 3 1:161:500:rmc:::MD5::[None] get total 2
Data Source: rmc-nt11 - Used Space - E: Label:Apps Serial Number 9
RRD: E:\Apache2\htdocs\cacti\rra\rmcnt11_hdd_total_30.rrd
Action: 2, Script: E:\Apache2\htdocs\cacti\scripts\ss_host_disk.php ss_host_disk hhhhhhhhhhh 3 1:161:500:rmc:::MD5::[None] get used 3

the output of the ss_fping:

E:\Apache2\htdocs\cacti>php scripts/ss_fping.php www.cacti.net 5 ICMP
min:86.4200 avg:86.8240 max:87.5700 dev:0.4356 loss:0.0000

The poller in debug showed the following - I think this is me doing something daft!

E:\Apache2\htdocs\cacti>php script_server.php e:\apache2\htdocs\cacti\scripts\ss
_fping.php ss_fping www.cacti.net 5 ICMP

12/01/2005 11:30:14 AM - PHPSVR: Poller[0] ERROR: The PHP Script Server MUST be
started using the full path to the file and in lower case. This is a PHP Bug!!!

Thanks,

Lard
Last edited by lard on Fri Nov 02, 2007 6:24 pm, edited 1 time in total.
---- lard007skype ----
User avatar
lard
Cacti User
Posts: 165
Joined: Wed Jul 20, 2005 10:48 am
Location: UK - Cambridge

Post by lard »

lard wrote:Hello,

The action 2 output from the poller cache:



the output of the ss_fping:

E:\Apache2\htdocs\cacti>php scripts/ss_fping.php www.cacti.net 5 ICMP
min:86.4200 avg:86.8240 max:87.5700 dev:0.4356 loss:0.0000

The poller in debug showed the following - I think this is me doing something daft!

E:\Apache2\htdocs\cacti>php script_server.php e:\apache2\htdocs\cacti\scripts\ss
_fping.php ss_fping www.cacti.net 5 ICMP

12/01/2005 11:30:14 AM - PHPSVR: Poller[0] ERROR: The PHP Script Server MUST be
started using the full path to the file and in lower case. This is a PHP Bug!!!

Thanks,

Lard
Got it this time :)

E:\Apache2\htdocs\cacti>php e:\apache2\htdocs\cacti\script_server.php
PHP Script Server has Started - Parent is cmd
^C
E:\Apache2\htdocs\cacti>php e:\apache2\htdocs\cacti\script_server.php
PHP Script Server has Started - Parent is cmd
E:/apache2/htdocs/cacti/scripts/ss_fping.php ss_fping www.cacti.net 5 ICMP
min:86.2200 avg:86.6940 max:87.4600 dev:0.4709 loss:0.0000
quit
PHP Script Server Shutdown request received, exiting

E:\Apache2\htdocs\cacti>

Thanks,

Lard
Last edited by lard on Fri Nov 02, 2007 6:24 pm, edited 1 time in total.
---- lard007skype ----
User avatar
lard
Cacti User
Posts: 165
Joined: Wed Jul 20, 2005 10:48 am
Location: UK - Cambridge

Post by lard »

Thought this may of been relevant - managed to recreate the "input expected" error by accidently sending a blank carraige return when running the script_server in debug:

E:\Apache2\htdocs\cacti>php e:\apache2\htdocs\cacti\script_server.php
PHP Script Server has Started - Parent is cmd
E:/apache2/htdocs/cacti/scripts/ss_fping.php ss_fping www.cacti.net 5 ICMP
min:86.3700 avg:86.8660 max:87.3700 dev:0.3365 loss:0.0000

ERROR: Input Expected, Script Server Terminating

May or may not be relevant,

Thanks,

Lard
---- lard007skype ----
User avatar
lard
Cacti User
Posts: 165
Joined: Wed Jul 20, 2005 10:48 am
Location: UK - Cambridge

Post by lard »

Hello,

Just to advise that I have upgraded to version g - more for the fact that it means getting the latest scripts again - thought it would be worth a try and will update if this makes a difference,

Thanks,

Lard
---- lard007skype ----
User avatar
lard
Cacti User
Posts: 165
Joined: Wed Jul 20, 2005 10:48 am
Location: UK - Cambridge

Post by lard »

Nuts :cry:

12/02/2005 10:33:20 AM - SYSTEM STATS: Time:20.3300 Method:cactid Processes:1 Threads:10 Hosts:178 HostsPerProcess:178 DataSources:8809 RRDsProcessed:1662
12/02/2005 10:33:12 AM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating
12/02/2005 10:33:10 AM - CACTID: Poller[0] Host[120] DS[2889] WARNING: Result from SNMP not valid. Partial Result: ...
12/02/2005 10:33:09 AM - CACTID: Poller[0] Host[116] DS[2870] WARNING: Result from SNMP not valid. Partial Result: ...
12/02/2005 10:33:09 AM - CACTID: Poller[0] Host[115] DS[2866] WARNING: Result from SNMP not valid. Partial Result: ...
12/02/2005 10:33:09 AM - CACTID: Poller[0] Host[49] DS[5474] WARNING: Result from SNMP not valid. Partial Result: ...
12/02/2005 10:33:09 AM - CACTID: Poller[0] Host[49] DS[5471] WARNING: Result from SNMP not valid. Partial Result: ...
12/02/2005 10:33:09 AM - CACTID: Poller[0] Host[49] DS[5336] WARNING: Result from SNMP not valid. Partial Result: ...
12/02/2005 10:33:08 AM - CACTID: Poller[0] Host[95] DS[2540] WARNING: Result from SNMP not valid. Partial Result: ...
12/02/2005 10:33:08 AM - CACTID: Poller[0] Host[96] DS[2544] WARNING: Result from SNMP not valid. Partial Result: ...
12/02/2005 10:33:07 AM - CACTID: Poller[0] Host[49] DS[5464] WARNING: Result from SNMP not valid. Partial Result: ...
12/02/2005 10:33:07 AM - CACTID: Poller[0] Host[80] DS[2379] WARNING: Result from SNMP not valid. Partial Result: ...
12/02/2005 10:33:06 AM - CACTID: Poller[0] Host[49] DS[5436] WARNING: Result from SNMP not valid. Partial Result: ...
12/02/2005 10:33:05 AM - CACTID: Poller[0] Host[3] DS[27] WARNING: Result from SNMP not valid. Partial Result: ...
12/02/2005 10:33:05 AM - CACTID: Poller[0] Host[3] DS[26] WARNING: Result from SNMP not valid. Partial Result: ...
12/02/2005 10:28:39 AM - SYSTEM STATS: Time:39.1822 Method:cactid Processes:1 Threads:10 Hosts:178 HostsPerProcess:178 DataSources:8809 RRDsProcessed:4336

I have also set the user for the php-win scheduled task to system but no joy - I'll have a rethink!

Thanks,

Lard
---- lard007skype ----
User avatar
lard
Cacti User
Posts: 165
Joined: Wed Jul 20, 2005 10:48 am
Location: UK - Cambridge

Post by lard »

Just applied the pre-patched files for g :D

Will monitor and update!

Thanks,

Lard
---- lard007skype ----
User avatar
lard
Cacti User
Posts: 165
Joined: Wed Jul 20, 2005 10:48 am
Location: UK - Cambridge

Post by lard »

Unfortunately the error is still coming into the log and stopping the polling process:

12/02/2005 12:08:15 PM - SYSTEM STATS: Time:15.0621 Method:cactid Processes:1 Threads:10 Hosts:178 HostsPerProcess:178 DataSources:8809 RRDsProcessed:1160
12/02/2005 12:08:11 PM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating

Any suggestions appreciated!

Thanks,

Lard
---- lard007skype ----
User avatar
lard
Cacti User
Posts: 165
Joined: Wed Jul 20, 2005 10:48 am
Location: UK - Cambridge

Post by lard »

lard wrote:Unfortunately the error is still coming into the log and stopping the polling process:

12/02/2005 12:08:15 PM - SYSTEM STATS: Time:15.0621 Method:cactid Processes:1 Threads:10 Hosts:178 HostsPerProcess:178 DataSources:8809 RRDsProcessed:1160
12/02/2005 12:08:11 PM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating

Also have a couple of hung cactid.exe processes

Any suggestions appreciated!

Thanks,

Lard
damn - as I changed the user for the scheduled task to SYSTEM I now cannot kill the hung processes :o
---- lard007skype ----
User avatar
lard
Cacti User
Posts: 165
Joined: Wed Jul 20, 2005 10:48 am
Location: UK - Cambridge

Post by lard »

An update - I have determined that the only scripts being used are the host CPU e.t.c. for the cacti server itself...I have disabled this host to see if this resolves the issue and stops the polling process hanging...though I was under the impression the the host templates were for unix only?

Anyway - update to follow,

Cheers,

Lard
---- lard007skype ----
User avatar
lard
Cacti User
Posts: 165
Joined: Wed Jul 20, 2005 10:48 am
Location: UK - Cambridge

Post by lard »

Now this is strange...I now no longer have any graphs generated by scripts that I can see yet I am still getting:

12/02/2005 02:58:16 PM - SYSTEM STATS: Time:15.7790 Method:cactid Processes:1 Threads:10 Hosts:176 HostsPerProcess:176 DataSources:8787 RRDsProcessed:1146 (<-should be 4000+)
12/02/2005 02:58:11 PM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating
12/02/2005 02:58:09 PM - CACTID: Poller[0] Host[116] DS[2870] WARNING: Result from SNMP not valid. Partial Result: ...
12/02/2005 02:58:09 PM - CACTID: Poller[0] Host[115] DS[2866] WARNING: Result from SNMP not valid. Partial Result: ...

I'll have to think of something else to stop the poller bombing out halfway through... :(

Lard
---- lard007skype ----
User avatar
lard
Cacti User
Posts: 165
Joined: Wed Jul 20, 2005 10:48 am
Location: UK - Cambridge

Post by lard »

Hello,

Update is that I have managed to remove all graphs that are generated from the script server..however, this still does not seem to fix the issue (though the php server error has now gone)

I am receiving the following in the logs when the graphs have gaps - probably because the logs show the poller taking 5 minutes to complete!

12/05/2005 03:42:57 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
12/05/2005 03:38:11 PM - CACTID: Poller[0] Host[131] DS[2941] WARNING: Result from SNMP not valid. Partial Result: ...
12/05/2005 03:38:11 PM - CACTID: Poller[0] Host[49] DS[5466] WARNING: Result from SNMP not valid. Partial Result: ...

Any hints on this error message - anyone come across it before?

Thanks,

Lard
---- lard007skype ----
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

If you turn the logging level to debug, you will see exactly why those SNMP queries are failing. Most likely the OID is invalid.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests