HMib> how to populate plugin_hmib_hrsystem ?

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
lorenplak
Posts: 41
Joined: Wed Feb 23, 2011 11:53 am

HMib> how to populate plugin_hmib_hrsystem ?

Post by lorenplak »

I've installed the hmib plugin configured it like the screen shot.
but after what must i do ?
the rescan OS type didn't show anything, the inventory discoverd all my host with Unknown as OS type.

wha's wrong ?

best regard,

Laurent
Attachments
img02.png
img02.png (9.78 KiB) Viewed 5939 times
img01.png
img01.png (26.06 KiB) Viewed 5939 times
Cacti 0.8.7g - Windows - poller type : spine
php 5.2.14 - MySQL 5.1.47
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: HMib> how to populate plugin_hmib_hrsystem ?

Post by TheWitness »

The poller has to run at least once before the rescan will discover anything.

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?
lorenplak
Posts: 41
Joined: Wed Feb 23, 2011 11:53 am

Re: HMib> how to populate plugin_hmib_hrsystem ?

Post by lorenplak »

OK, so after rescan OS type, waiting for a poller, it's always the same thing, no OS types are discovered, my hosts are Unknown type even if they have Host MIB - Get Mounted Partitions or Host MIB - Get Processor Information data queries.
Cacti 0.8.7g - Windows - poller type : spine
php 5.2.14 - MySQL 5.1.47
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: HMib> how to populate plugin_hmib_hrsystem ?

Post by TheWitness »

What type of errors in your cacti log after a rescan? Search for a device type called 'Unknown'.

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?
lorenplak
Posts: 41
Joined: Wed Feb 23, 2011 11:53 am

Re: HMib> how to populate plugin_hmib_hrsystem ?

Post by lorenplak »

hello,

i think having found something.

in the poller_hmib;php script, the command

Code: Select all

		$systemMib = cacti_snmp_walk($host["hostname"], $host["snmp_community"], ".1.3.6.1.2.1.1", $host["snmp_version"],
			$host["snmp_username"], $host["snmp_password"],
			$host["snmp_auth_protocol"], $host["snmp_priv_passphrase"], $host["snmp_priv_protocol"],
			$host["snmp_context"], $host["snmp_port"], $host["snmp_timeout"],
			read_config_option("snmp_retries"), $host["max_oids"], SNMP_VALUE_LIBRARY, SNMP_WEBUI);
on line 555 returns this :

Code: Select all

    [1] => Array
        (
            [oid] => system.sysObjectID.0
            [value] => OID: enterprises.311.1.1.3.1.2
        )

    [2] => Array
        (
            [oid] => system.sysUpTime.0
            [value] => 648756059
        )

    [3] => Array
        (
            [oid] => system.sysContact.0
            [value] =>
        )
Cacti 0.8.7g - Windows - poller type : spine
php 5.2.14 - MySQL 5.1.47
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: HMib> how to populate plugin_hmib_hrsystem ?

Post by TheWitness »

Hmm. System Description missing. What types of hosts are these?
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?
lorenplak
Posts: 41
Joined: Wed Feb 23, 2011 11:53 am

Re: HMib> how to populate plugin_hmib_hrsystem ?

Post by lorenplak »

it is for all my hosts (windows 2003).
i've modify the script adding ".1.3.6.1.2.1." in the OID ($mib["oid"]) and so, every thing works !
Cacti 0.8.7g - Windows - poller type : spine
php 5.2.14 - MySQL 5.1.47
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: HMib> how to populate plugin_hmib_hrsystem ?

Post by TheWitness »

That's a big of a problem in that it's getting the whole tree in multiple passes. What happens when you walk the 'original' OID from your browser? Also, what snmp version are you using?
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?
ealcaniz
Posts: 40
Joined: Fri Sep 30, 2011 3:37 am

Re: HMib> how to populate plugin_hmib_hrsystem ?

Post by ealcaniz »

Hi there, I got same problem, I rescan I got all unknown hosts, I just created a template RHEL for all version of Redhat, I rescan a few times and the new host were included in the OS definition but the first host that they were discover are unknown but I can't see again, could you tell where I can rescan again or force to check again the hosts OS.

thanks in advance
Edu
Attachments
Capture.PNG
Capture.PNG (33.58 KiB) Viewed 5912 times
Thanks

Edu
ealcaniz
Posts: 40
Joined: Fri Sep 30, 2011 3:37 am

Re: HMib> how to populate plugin_hmib_hrsystem ?

Post by ealcaniz »

I add another image where you can see unknown hosts. I would like to rescan again or add these host to the correct OS template.
Attachments
Capture1.PNG
Capture1.PNG (29.12 KiB) Viewed 5910 times
Thanks

Edu
User avatar
classen
Cacti User
Posts: 116
Joined: Thu Nov 12, 2009 3:07 pm

Re: HMib> how to populate plugin_hmib_hrsystem ?

Post by classen »

Hello. I don't mean to hijack the thread, but I'm not able to find too much information on my HMIB installation problem.

I have installed the plugin and configured it as documented.

I did see this error in the cacti logs during installation

Code: Select all

02/23/2016 08:51:35 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1061', SQL:"ALTER TABLE snmp_query_graph ADD INDEX snmp_query_id(snmp_query_id)'
02/23/2016 08:51:35 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1061', SQL:"ALTER TABLE snmp_query_graph ADD INDEX graph_template_id(graph_template_id)'
02/23/2016 08:51:35 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1061', SQL:"ALTER TABLE data_input_data ADD INDEX data_input_field_id(data_input_field_id)'
02/23/2016 08:51:35 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1061', SQL:"ALTER TABLE data_input_data ADD INDEX data_template_data_id(data_template_data_id)'
I'm not sure if that is something to be worried about?

After cycle of polling I see that hmib has found 23 hosts:

Image

But in the Console-->Management-->OS Types nothing is being discovered:

Image

Hitting rescan button finds nothing.

I see the plugin_hmib_hrSystem table in my cacti DB, but none of the information is being populated.

I must be missing something. Any help would be greatly appreciated.
dagonet
Cacti User
Posts: 90
Joined: Sat Oct 29, 2005 4:05 pm
Location: Wuerzburg

Re: HMib> how to populate plugin_hmib_hrsystem ?

Post by dagonet »

Hello,
I have the same problem with my hmib plugin. I use version 2.0. No database errors.
OS Types are not recognized.

Cheers
Marcus
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests