SNMP - Get Mounted Partitions does not working

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
luizmultirede
Posts: 14
Joined: Wed Jan 03, 2007 12:06 pm

SNMP - Get Mounted Partitions does not working

Post by luizmultirede »

Hi cactiusers,

I have some problems in my cacti. Look my cacti versions and the debug output.

===============================================

Cacti Version 0.8.6i
Plugin Architecture 1.0
Poller Type CMD.php
Server Info Linux 2.6.9-78.0.1.ELsmp
Web Server Apache/2.0.52 (CentOS)
PHP Version 4.3.9
PHP Extensions yp, xml, wddx, tokenizer, sysvshm, sysvsem, standard, sockets, shmop, session, pspell, posix, pcre, overload, mime_magic, iconv, gmp, gettext, ftp, exif, dio, dbx, dba, curl, ctype, calendar, bz2, bcmath, zlib, openssl, apache2handler, gd, mysql, snmp, eAccelerator
MySQL Version 4.1.22
RRDTool Version 1.2.15
SNMP Version 5.1.2

===============================================


Data Query Debug Information

+ Running data query [8].
+ Found type = '6 '[script query].
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php 192.168.37.191 1:161:500:sidious:::|host_snmp_auth_protocol|:|host_snmp_priv_passphrase|:|host_snmp_priv_protocol|:|host_snmp_context| 89 index'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php 192.168.37.191 1:161:500:sidious:::|host_snmp_auth_protocol|:|host_snmp_priv_passphrase|:|host_snmp_priv_protocol|:|host_snmp_context| 89 query index'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php 192.168.37.191 1:161:500:sidious:::|host_snmp_auth_protocol|:|host_snmp_priv_passphrase|:|host_snmp_priv_protocol|:|host_snmp_context| 89 query description'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php 192.168.37.191 1:161:500:sidious:::|host_snmp_auth_protocol|:|host_snmp_priv_passphrase|:|host_snmp_priv_protocol|:|host_snmp_context| 89 query sau'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php 192.168.37.191 1:161:500:sidious:::|host_snmp_auth_protocol|:|host_snmp_priv_passphrase|:|host_snmp_priv_protocol|:|host_snmp_context| 89 query total'
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'


I don´t know what happening with this query?

[b]Have anyone some solutions for this?[/b]

I really appreciate
Luiz
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) linux box so wrong forum, moving.

2) Cacti Version 0.8.6i?? You're way behind in updates, which likely has fixed the problem.
luizmultirede
Posts: 14
Joined: Wed Jan 03, 2007 12:06 pm

Post by luizmultirede »

I know I posted wrong....Sorry about that

So my cacti version is 0.8.6i and I was using 0.8.7b and this query working fine, but was happening to much gaps on the graphs so i changed to this version.

I don´t know what to do.....
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Grab the latest SVN of ss_host_disk.php from the web site, as of today.

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?
luizmultirede
Posts: 14
Joined: Wed Jan 03, 2007 12:06 pm

Post by luizmultirede »

Hi Witness,

Where Can I grab the latest SVN of ss_host_disk.php.

Thanks.
I appreciate
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

The SVN... off the main cacti.net site... http://svn.cacti.net/viewvc/
kamal
Posts: 6
Joined: Sat Mar 08, 2008 12:46 pm

Post by kamal »

i am facing same issue please help, i donno how to get update using svn, i manually created php file from svn site by copy pasting but now

/usr/bin/php -q /var/html/cacti/scripts/ss_host_cpu.php 67.*.*.* 3 1:161:500:public:::MD5::DES: query index

Timeout: No Response from IP

what am i doing wrong? if i use old ss_host_cpu.php/disk.php i get results via command line fine but nt in verbose query

thanks
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

There are actually two files from SVN that you need to obtain. Once you do that, you need to repopulate the poller cache. The files are:

resource/script_server/host_disk.xml
resource/script_server/host_cpu.xml
scripts/ss_host_disk.php
scripts/ss_host_cpu.php

Please take these from the branches/0.8.7 SVN location. In addition, keep backup copies if all melt's down don't forget to re-populate the poller cache for these items as well if you have to back off.

Alternatively, you could take the old files and simply move the "include_once(blahblahblah.../snmp.php);" statement that appears just after the error_reporting into the if(...) satement just below it right after the include(.../global.php) section. That might work better.

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?
kamal
Posts: 6
Joined: Sat Mar 08, 2008 12:46 pm

Post by kamal »

thanks for the reply, however both attempt doing the exact same result, if i get two files and try with that i get response timed out via command line, if i use the old one with the modified code getting proper results via command line but not in cacti. any other suggestions? is this the problem with cacti script or my system?
luizmultirede
Posts: 14
Joined: Wed Jan 03, 2007 12:06 pm

Post by luizmultirede »

Hi guys,

The same for me, any other solution??
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest