lm_sensors & cacti 0.8.7a help
Moderators: Developers, Moderators
lm_sensors & cacti 0.8.7a help
I'm posting this because after some nights of trials & errors I didn't get the graphs to work. I followed the instructions found on this post here.
My actual problem is that I get
3) ucd/net - lmSensors - Fan Sensors (Verbose Query) Uptime Goes Backwards Success [0 Items, 0 Rows]
in the Associated Data Queries tab.
running manualy
php -q netsnmp_lmsensors.php <arguments> gets me all kind of errors ... begining with
PHP Notice: Undefined variable: config in /usr/share/cacti/lib/snmp.php on line 33. If I comment out that declaration then the errors continue through snmp.php and so on ...
my guess is that there are some code diferences and references that need fine tunning. I'm not so good with php coding so I'd like someone with greater experience to tune those scripts.
BTW: very very useful addons those lm_sensors scripts
edit:
my system: fedora 8,
cacti 0.8.7a
php-5.2.4-3
httpd-2.2.6-3
mysql-5.0.45-6.fc8
My actual problem is that I get
3) ucd/net - lmSensors - Fan Sensors (Verbose Query) Uptime Goes Backwards Success [0 Items, 0 Rows]
in the Associated Data Queries tab.
running manualy
php -q netsnmp_lmsensors.php <arguments> gets me all kind of errors ... begining with
PHP Notice: Undefined variable: config in /usr/share/cacti/lib/snmp.php on line 33. If I comment out that declaration then the errors continue through snmp.php and so on ...
my guess is that there are some code diferences and references that need fine tunning. I'm not so good with php coding so I'd like someone with greater experience to tune those scripts.
BTW: very very useful addons those lm_sensors scripts
edit:
my system: fedora 8,
cacti 0.8.7a
php-5.2.4-3
httpd-2.2.6-3
mysql-5.0.45-6.fc8
-
- Posts: 4
- Joined: Sun Dec 30, 2007 7:52 pm
Fixed
I've fixed the netsnmp_lmsensors.php to work with cacti 0.8.7
This is just a quick fix, mayby it's not correctly done, but it works for me
It will, however, not work with anything less than cacti-0.8.7
This is just a quick fix, mayby it's not correctly done, but it works for me
It will, however, not work with anything less than cacti-0.8.7
- Attachments
-
- netsnmp_lmsensors.php.tar.gz
- Works with 0.8.7
- (2.65 KiB) Downloaded 334 times
-
- Posts: 4
- Joined: Sun Dec 30, 2007 7:52 pm
Ok after a few hours of refamiliarising myself with PHP I have managed to get the script working for me.
What I changed
- added include for include/global.php
- removed include for include/config.php (should not be needed)
- changed calls to 'cacti_snmp_get' (3 instances)
+ added 4 empty variables for - $auth_proto, $priv_pass, $priv_proto, $context
I think gartner's fix was correct, just not completed for all of the instances. So thanks Gartner.
I hope this helps.
What I changed
- added include for include/global.php
- removed include for include/config.php (should not be needed)
- changed calls to 'cacti_snmp_get' (3 instances)
+ added 4 empty variables for - $auth_proto, $priv_pass, $priv_proto, $context
I think gartner's fix was correct, just not completed for all of the instances. So thanks Gartner.
I hope this helps.
- Attachments
-
- netsnmp_lmsensors.php.tgz
- Fix for lmSensors
- (2.65 KiB) Downloaded 521 times
-
- Posts: 4
- Joined: Sun Dec 30, 2007 7:52 pm
-
- Posts: 12
- Joined: Fri Sep 05, 2008 9:14 am
- Location: Bosnia
- Contact:
Also not work to me !
Error massage is :
Fixed this error data !
Right now i have this errors :
Error massage is :
Code: Select all
Error in data query.
Right now i have this errors :
Code: Select all
Data Query [ucd/net - lmSensors - Fan Sensors] Reload Associated Query
Fan Sensor Device Fan Sensor Name
Call to undefined function read_config_option() in /var/www/localhost/htdocs/cacti/lib/snmp.php on line 234 Call to undefined function read_config_option() in /var/www/localhost/htdocs/cacti/lib/snmp.php on line 234
Missing argument 10 for cacti_snmp_walk(), called in /var/www/localhost/htdocs/cacti/scripts/netsnmp_lmsensors.php on line 259 and defined in /var/www/localhost/htdocs/cacti/lib/snmp.php on line 225 Missing argument 10 for cacti_snmp_walk(), called in /var/www/localhost/htdocs/cacti/scripts/netsnmp_lmsensors.php on line 259 and defined in /var/www/localhost/htdocs/cacti/lib/snmp.php on line 225
Code: Select all
Data Query [ucd/net - lmSensors - Thermal Sensors] Reload Associated Query
Thermal Sensor Device Thermal Sensor Name
Call to undefined function read_config_option() in /var/www/localhost/htdocs/cacti/lib/snmp.php on line 234 Call to undefined function read_config_option() in /var/www/localhost/htdocs/cacti/lib/snmp.php on line 234
Missing argument 10 for cacti_snmp_walk(), called in /var/www/localhost/htdocs/cacti/scripts/netsnmp_lmsensors.php on line 259 and defined in /var/www/localhost/htdocs/cacti/lib/snmp.php on line 225 Missing argument 10 for cacti_snmp_walk(), called in /var/www/localhost/htdocs/cacti/scripts/netsnmp_lmsensors.php on line 259 and defined in /var/www/localhost/htdocs/cacti/lib/snmp.php on line 225
Code: Select all
Data Query [ucd/net - lmSensors - Voltage Sensors] Reload Associated Query
Voltage Sensor Device Voltage Sensor Name
Call to undefined function read_config_option() in /var/www/localhost/htdocs/cacti/lib/snmp.php on line 234 Call to undefined function read_config_option() in /var/www/localhost/htdocs/cacti/lib/snmp.php on line 234
Missing argument 10 for cacti_snmp_walk(), called in /var/www/localhost/htdocs/cacti/scripts/netsnmp_lmsensors.php on line 259 and defined in /var/www/localhost/htdocs/cacti/lib/snmp.php on line 225 Missing argument 10 for cacti_snmp_walk(), called in /var/www/localhost/htdocs/cacti/scripts/netsnmp_lmsensors.php on line 259 and defined in /var/www/localhost/htdocs/cacti/lib/snmp.php on line 225
Who is online
Users browsing this forum: No registered users and 6 guests