tapufd,
The reason that I wanted you to download the latest CACTID was to correct a logging issue. I still need you to capture another DEBUG log and post it. I am very interested in the DEBUG output to determine what formatting problems are causing this issue. I can not determine that until you post the DEBUG output.
The timeout is not the issue. Otherwise you would receive a Timeout ERROR.
TheWitness
cmd.php works - cactid fails: Result from SCRIPT not valid
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17061
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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 increased the timeout value in poller.c to 10 seconds with the pre20040929 version, it looks like my cactid is getting stuck in a loop.
- Attachments
-
- cactid-loop.txt
- cactid output
- (17.75 KiB) Downloaded 221 times
See in attachment a new DEBUG log.
Used :
* cacti-0.8.6a-pre20040930
* cacti-cactid-0.8.6a-pre20040930.tar
/tap
Windows XP
net-snmp-5.1.2-1.win32
mysql-4.0.20d-win
php-5.0.1-Win32
Used :
* cacti-0.8.6a-pre20040930
* cacti-cactid-0.8.6a-pre20040930.tar
/tap
Windows XP
net-snmp-5.1.2-1.win32
mysql-4.0.20d-win
php-5.0.1-Win32
- Attachments
-
- cacti.txt
- (68.41 KiB) Downloaded 286 times
- TheWitness
- Developer
- Posts: 17061
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Your script server is timing out. Therefore, please search for the following line in php.c
timeout.tv_sec = 5;
and again change to 10. I am also considering a more resiliant method to recover from these errors. Until then, try the following.
TheWitness
timeout.tv_sec = 5;
and again change to 10. I am also considering a more resiliant method to recover from these errors. Until then, try the following.
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 finally got mine *WORKING*
So, I've been dealing with this for a couple of weeks, and none of the suggestions I found here worked. So, taking matters into my own hands, I finally resolved the issue by changing the $hostname variable in the netscreen_stats.pl script to the actual IP address of the firewall I was trying to monitor. For whatever reason, the IP Address of the defined host was not being appended to the script at run-time. I found this by accidentally running the following:
perl netscreen_stats.pl (no hostname or IP Address)
and getting the following output, which matched the errors in the log:
cpu1: cpu5: cpu15: memory_allocated: memoryAvailable: memoryFragmented: sessionsAllocated: sessionsMaximum: sessionsFailed:
No Data as there is no device specified to poll.
It seems like there is a bug *somewhere* that fails to append the IP Address / hostname to the command line. I don't profess to be an expert, and this is *just a hack* but now I'm finally getting CPU, Memory and Session Stats graphed.
As a side note, I also needed to check the path where cacti was looking for my netscreen_stats.pl script. If you check your poller cache, and search for netscreen_stats.pl you may see that it wants to find netscreen_stats.pl in a place like /usr/local/cacti even if you installed cacti in /var/www/cacti (as I did). Check your path and, if necessary, change $hostname to the IP Address or hostname (if DNS / hosts is setup properly) in the netscreen_stats.pl.
Hope This Helps!
tekbot
Cacti, cactid, snmp and php info:
cacti-0.8.6f
cacti-cactid-0.8.6e
net-snmp-devel-5.1.2-11
net-snmp-5.1.2-11
php-snmp-4.3.9-3.7
net-snmp-perl-5.1.2-11
net-snmp-utils-5.1.2-11
net-snmp-libs-5.1.2-11
perl netscreen_stats.pl (no hostname or IP Address)
and getting the following output, which matched the errors in the log:
cpu1: cpu5: cpu15: memory_allocated: memoryAvailable: memoryFragmented: sessionsAllocated: sessionsMaximum: sessionsFailed:
No Data as there is no device specified to poll.
It seems like there is a bug *somewhere* that fails to append the IP Address / hostname to the command line. I don't profess to be an expert, and this is *just a hack* but now I'm finally getting CPU, Memory and Session Stats graphed.
As a side note, I also needed to check the path where cacti was looking for my netscreen_stats.pl script. If you check your poller cache, and search for netscreen_stats.pl you may see that it wants to find netscreen_stats.pl in a place like /usr/local/cacti even if you installed cacti in /var/www/cacti (as I did). Check your path and, if necessary, change $hostname to the IP Address or hostname (if DNS / hosts is setup properly) in the netscreen_stats.pl.
Hope This Helps!
tekbot
Cacti, cactid, snmp and php info:
cacti-0.8.6f
cacti-cactid-0.8.6e
net-snmp-devel-5.1.2-11
net-snmp-5.1.2-11
php-snmp-4.3.9-3.7
net-snmp-perl-5.1.2-11
net-snmp-utils-5.1.2-11
net-snmp-libs-5.1.2-11
Who is online
Users browsing this forum: No registered users and 3 guests