Problems with 0.8.6G with SNMP
Moderators: Developers, Moderators
Problems with 0.8.6G with SNMP
Having issues graphing SNMP - Mounted Partitions since I've upgraded to 0.8.6G Alot of them are not working, though some are but there doesn't seem to be any pattern on which do or don't. Both Linux and Windows boxes. I've had this happen before and all I needed to do was requery the Mounted Partitions from the Devices but thats not working now and I have alot more not working then working. I've tried using the php poller and has made no difference. I've tried clearing the poller cache with no luck and I didn't replace any of the new scripts with the old ones during the upgrade.
Here's a sampe of my Log file:
09/12/2005 11:20:48 PM - SYSTEM STATS: Time:46.1192 Method:cactid Processes:2 Threads:2 Hosts:152 HostsPerProcess:76 DataSources:2092 RRDsProcessed:876
09/12/2005 11:20:44 PM - CACTID: Poller[0] Host[233] DS[3118] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:44 PM - CACTID: Poller[0] Host[233] DS[3117] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:44 PM - CACTID: Poller[0] Host[233] DS[3116] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:44 PM - CACTID: Poller[0] Host[233] DS[3115] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:36 PM - CACTID: Poller[0] Host[222] DS[2950] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:36 PM - CACTID: Poller[0] Host[222] DS[2949] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:36 PM - CACTID: Poller[0] Host[222] DS[2948] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:36 PM - CACTID: Poller[0] Host[222] DS[2947] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[221] DS[2851] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[221] DS[2850] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[221] DS[2849] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[221] DS[2848] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[220] DS[2842] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[220] DS[2841] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[220] DS[2840] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[220] DS[2839] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[219] DS[2833] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[219] DS[2832] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[219] DS[2831] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[219] DS[2830] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[218] DS[2824] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[218] DS[2823] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[218] DS[2822] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[218] DS[2821] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[217] DS[2816] WARNING: Result from SERVER not valid. Partial Result: ...
Unfortunately I didn't backup my SQL database before upgrading so I can't go back to 0.8.6F so I need some help here as this is a production system.
Here's a sampe of my Log file:
09/12/2005 11:20:48 PM - SYSTEM STATS: Time:46.1192 Method:cactid Processes:2 Threads:2 Hosts:152 HostsPerProcess:76 DataSources:2092 RRDsProcessed:876
09/12/2005 11:20:44 PM - CACTID: Poller[0] Host[233] DS[3118] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:44 PM - CACTID: Poller[0] Host[233] DS[3117] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:44 PM - CACTID: Poller[0] Host[233] DS[3116] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:44 PM - CACTID: Poller[0] Host[233] DS[3115] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:36 PM - CACTID: Poller[0] Host[222] DS[2950] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:36 PM - CACTID: Poller[0] Host[222] DS[2949] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:36 PM - CACTID: Poller[0] Host[222] DS[2948] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:36 PM - CACTID: Poller[0] Host[222] DS[2947] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[221] DS[2851] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[221] DS[2850] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[221] DS[2849] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[221] DS[2848] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[220] DS[2842] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[220] DS[2841] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[220] DS[2840] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[220] DS[2839] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[219] DS[2833] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[219] DS[2832] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[219] DS[2831] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[219] DS[2830] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[218] DS[2824] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[218] DS[2823] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[218] DS[2822] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[218] DS[2821] WARNING: Result from SERVER not valid. Partial Result: ...
09/12/2005 11:20:35 PM - CACTID: Poller[0] Host[217] DS[2816] WARNING: Result from SERVER not valid. Partial Result: ...
Unfortunately I didn't backup my SQL database before upgrading so I can't go back to 0.8.6F so I need some help here as this is a production system.
Turn the polling level in cacti to debug (Settings | Polling level) for one cycle and paste the output of the log file (./cacti/cacti.log). If it contains WEBLOG entries, then don't bother posting since they just clutter up the log. Turn off WEBEVENTS logging and try again.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
I set the permission of all scripts to 777 to be sure no change, cleared the poller cache still not working.. Funny thing is some that are working aren't working well.. lots of drop offs.. the used spaced showing but not total. And its only affecting the SNMP mounted partition checks not the interface or the CPU. I'm running Fedora Core 4 full updated with the RPM of Cacti 0.8.6G with Cactid 0.8.6E but even with the php poller it doesn't work. I've included the poller log at the setting you asked for hopefully you can figure out whats wrong. Had to zip it to get it to fit.
- Attachments
-
- cacti.zip
- (58.02 KiB) Downloaded 225 times
Caliban, these all appear to be Script Server scripts that are generating errors. Have you tried manually running these ala http://forums.cacti.net/viewtopic.php?t=7738 ?
You might also want to look here: http://forums.cacti.net/viewtopic.php?t=9286
You might also want to look here: http://forums.cacti.net/viewtopic.php?t=9286
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
OUr documentation is out of date. The upgrade instructions indicate that you must copy all of your old scripts from the old scripts directory to the new one.
However, when you do that, you will break the default script server scripts ss_host_disk.php and ss_host_cpu.php which both changed in the 0.8.6g release to support SNMP v3. If you simply copy back the ones from the RPM/ZIP/TAR file, you should be Ok.
Also, please keep in mind that in earlier version of Cacti, the script did not pay attention to the hosts timeout. In some cases, on busy servers, the poll of disk takes about 8-10 seconds.
TheWitness
However, when you do that, you will break the default script server scripts ss_host_disk.php and ss_host_cpu.php which both changed in the 0.8.6g release to support SNMP v3. If you simply copy back the ones from the RPM/ZIP/TAR file, you should be Ok.
Also, please keep in mind that in earlier version of Cacti, the script did not pay attention to the hosts timeout. In some cases, on busy servers, the poll of disk takes about 8-10 seconds.
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?
When I copied my old scripts into my new scripts folder I only copied those that didn't already exist I didn't replace any of the new ones. As for the Host timeouts which do you mean? I tried this one on the Device section
SNMP Timeout setting it as high as 50000 with no change. I also went into the settings and tried Script and Script Server Timeout Value under the poller went as high as 8000 with that and raised Ping Timeout Value as well with no luck.
SNMP Timeout setting it as high as 50000 with no change. I also went into the settings and tried Script and Script Server Timeout Value under the poller went as high as 8000 with that and raised Ping Timeout Value as well with no luck.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Post a snippet from your poller cache. Then also open a command prompt and run that snippet and see if you get data.
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?
Here's one that I know isn't working:
Data Source: NewsAlertDB1 - Hard Drive Space
RRD: /var/www/html/cacti/rra/newsalertdb1_hdd_total_1484.rrd
Action: 2, Script: /var/www/html/cacti/scripts/ss_host_disk.php ss_host_disk 172.18.4.202 114 1:161:500:public:::MD5::[None] get used 2
I ran it two ways from the command prompt.. once raw:
# /var/www/html/cacti/scripts/ss_host_disk.php ss_host_disk 172.18.4.202 114 1:161:500:public:::MD5::[None] get used 2
/var/www/html/cacti/scripts/ss_host_disk.php: line 1: ?php: No such file or directory
/var/www/html/cacti/scripts/ss_host_disk.php: line 2: =: command not found
/var/www/html/cacti/scripts/ss_host_disk.php: line 4: /bin: is a directory
/var/www/html/cacti/scripts/ss_host_disk.php: line 5: syntax error near unexpected token `E_ERROR'
/var/www/html/cacti/scripts/ss_host_disk.php: line 5: `error_reporting(E_ERROR);'
and once with PHP:
# php /var/www/html/cacti/scripts/ss_host_disk.php ss_host_disk 172.18.4.202 114 1:161:500:public:::MD5::[None] get used 2
PHP Notice: Undefined offset: 1 in /var/www/html/cacti/scripts/ss_host_disk.php on line 20
PHP Notice: Undefined offset: 2 in /var/www/html/cacti/scripts/ss_host_disk.php on line 21
PHP Notice: Undefined offset: 3 in /var/www/html/cacti/scripts/ss_host_disk.php on line 37
I checked the file creation date of my scripts.. the "ss_" ones are Sept 8 along with the others I didn't copy over.. the old scripts are Sept 12 which are the ones that didn't exist in the new install so I'm pretty sure I didn't copy over by mistake.
Data Source: NewsAlertDB1 - Hard Drive Space
RRD: /var/www/html/cacti/rra/newsalertdb1_hdd_total_1484.rrd
Action: 2, Script: /var/www/html/cacti/scripts/ss_host_disk.php ss_host_disk 172.18.4.202 114 1:161:500:public:::MD5::[None] get used 2
I ran it two ways from the command prompt.. once raw:
# /var/www/html/cacti/scripts/ss_host_disk.php ss_host_disk 172.18.4.202 114 1:161:500:public:::MD5::[None] get used 2
/var/www/html/cacti/scripts/ss_host_disk.php: line 1: ?php: No such file or directory
/var/www/html/cacti/scripts/ss_host_disk.php: line 2: =: command not found
/var/www/html/cacti/scripts/ss_host_disk.php: line 4: /bin: is a directory
/var/www/html/cacti/scripts/ss_host_disk.php: line 5: syntax error near unexpected token `E_ERROR'
/var/www/html/cacti/scripts/ss_host_disk.php: line 5: `error_reporting(E_ERROR);'
and once with PHP:
# php /var/www/html/cacti/scripts/ss_host_disk.php ss_host_disk 172.18.4.202 114 1:161:500:public:::MD5::[None] get used 2
PHP Notice: Undefined offset: 1 in /var/www/html/cacti/scripts/ss_host_disk.php on line 20
PHP Notice: Undefined offset: 2 in /var/www/html/cacti/scripts/ss_host_disk.php on line 21
PHP Notice: Undefined offset: 3 in /var/www/html/cacti/scripts/ss_host_disk.php on line 37
I checked the file creation date of my scripts.. the "ss_" ones are Sept 8 along with the others I didn't copy over.. the old scripts are Sept 12 which are the ones that didn't exist in the new install so I'm pretty sure I didn't copy over by mistake.
Ok I just figured you should be doing this with the script_server running here's a few I tried:
/var/www/html/cacti/scripts/ss_host_disk.php ss_host_disk 172.18.4.202 114 1:161:500:public:::MD5::[None] get total 4
0
/var/www/html/cacti/scripts/ss_host_disk.php ss_host_disk 172.18.4.202 114 1:161:500:public:::MD5::[None] get used 2
5048049664
/var/www/html/cacti/scripts/ss_host_disk.php ss_host_disk 172.18.124.243 197 1:161:50000:public:::MD5::[None] get total 1
0
Got 1 out of 3
/var/www/html/cacti/scripts/ss_host_disk.php ss_host_disk 172.18.4.202 114 1:161:500:public:::MD5::[None] get total 4
0
/var/www/html/cacti/scripts/ss_host_disk.php ss_host_disk 172.18.4.202 114 1:161:500:public:::MD5::[None] get used 2
5048049664
/var/www/html/cacti/scripts/ss_host_disk.php ss_host_disk 172.18.124.243 197 1:161:50000:public:::MD5::[None] get total 1
0
Got 1 out of 3
Who is online
Users browsing this forum: No registered users and 1 guest