Graphing Win32 hosts from Linux based cacti host

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

Moderators: Developers, Moderators

Post Reply
zheka
Posts: 44
Joined: Tue May 23, 2006 11:52 am

Graphing Win32 hosts from Linux based cacti host

Post by zheka »

As it was advised by BSOD2600 I start a new post that should answer potential questions on polling windows hosts from linux server and eventually graphing them using MBM5 and snmp informant.

So that is what I have ready and working:

Linux box with cacti--0.8.6i, all packages for net-snmp-5.2.1 installed (including net-snmp-perl), rrdtool-1.2.x

Win2003 server has MBM5 and snmp informant installed. I copied snmp_mbm5.pl to scripts directory and imported all templates. Obviously graphs are created but not populated with data.

My problem is when I do snmpwalk with all those OID mentioned in snmp_mbm5.pl script I end up with End of MIB message.

snmpwalk -v 1 -c rocommunity 192.197.101.80 .1.3.6.1.4.1.9600.1.10.6.1.6.1

How can I troubleshoot this? I don't know whether snmp-informant is collecting data on windows host. Where and how is it possible to check? Appreciate any hints and advices.

Sincerely
Eugene
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Try snmpwalking .1.3.6.1.4.1.9600.1.10.6.1.6, instead. If nothing is returned, then the snmp informant portion isn't working. Try reinstalling it (I've had to do that a time or two). Additionally, MBM5 must be running on the Windows box, for it to return snmp data. Obviously, if a user is not logged on, then MBM5 is not running. I use Firedaemon to run MBM5 all the time as a service.

Lastly, MBM5 must be able to retrieve temps/volts/fan speeds from the computer.

Check out all the above...
zheka
Posts: 44
Joined: Tue May 23, 2006 11:52 am

Post by zheka »

Thanks man!

I am having a bit of progress but still no graphs. Here is what I've done.
I installed informant-mbm-10.exe instead of informant-std-14.exe. When
I do snmpwalk with the OID you advised I get real values:

SNMPv2-SMI::enterprises.9600.1.10.6.1.6.1 = STRING: "30."
SNMPv2-SMI::enterprises.9600.1.10.6.1.6.2 = STRING: "69."
SNMPv2-SMI::enterprises.9600.1.10.6.1.6.3 = STRING: "32."
... and so on.

Does it mean that I have to poll windows server using snmp version 2?

I am having MBM5 running all the time. What is bothering me is that I see only temperatures measured by MBM5 in the system tray. I can't see any voltages and rpms for fans.

Eugene
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

zheka wrote:Does it mean that I have to poll windows server using snmp version 2?
I just noticed that too since you mentioned it (the SNMPv2-SMI stuff). My snmpwalks work just fine using v1. Cacti is configured to use v1 also. So don't think v2 is required.
zheka wrote:What is bothering me is that I see only temperatures measured by MBM5 in the system tray. I can't see any voltages and rpms for fans.
Thats possibly because you haven't configured MBM5 with the correct senors in the voltage and fan sections. To find out of the system will even report that data, go to General -> System Info. Then click on sys info on the bottom. Copy/paste that to the forum.
zheka
Posts: 44
Joined: Tue May 23, 2006 11:52 am

Post by zheka »

Here you are :) From the
--Sensor Chip Readings-- section we can see those values for Temp, Voltages and Fan rpms.

----MBM SYSTEM INFO-----

MBM 5.3.7.0
MBM 5 Core EXE : 5.3.7.0
MBM 5 Core DLL : 5.3.7.0
MBM 5 Settings DLL : 5.3.7.0
MBM 5 Dashboard DLL : 5.3.5.0
MBM 5 Hibernation DLL : 5.0.0.0
MBM 5 Ras DLL : 5.0.0.0
MBM 5 Logger DLL : 5.3.4.0
MBM 5 Mail, FTP and UDP DLL : 5.3.4.0
MBM 5 OSD DLL : 5.0.0.3
MBM 5 ASPI DLL : 5.2.1.0
MBM 5 Heat Up EXE : 5.0.0.0
MBM 5 Wizard : 5.3.5.0
MBMIO DLL : 2.32.64.2
MBMIO Driver : 1.0 built by: WinDDK

DLL Folder Location : C:\Program Files\Motherboard Monitor 5\DLL\
Data Folder Location : C:\Program Files\Motherboard Monitor 5\Data\
Language Folder Location : C:\Program Files\Motherboard Monitor 5\Language\
Log Folder Location (Alarm) : c:\program files\motherboard monitor 5\log\
Log Folder Location (High Low): c:\program files\motherboard monitor 5\log\
Log Folder Location (Interval): c:\program files\motherboard monitor 5\log\

Selected Language : English

Info ChipInfo.ini : 18154 bytes 6/17/2004 4:37:54 PM
Info shdn.ini : 388 bytes 10/12/2000 6:47:06 PM
Info Voltage.ini : 38234 bytes 10/23/2006 3:37:14 PM
Info Language file : 22920 bytes 6/12/2004 9:43:20 AM

Up Time MBM session : 00:00:14:27
Up Time MBM total : 00:20:21:50

------Sensor Chip-------

Main Sensor Chip : Winbond W83627HF
SMB Address : $5000
Used Bus : ISA
ISA Address : $0290

-Sensor Chip Selections-

Possible Temp Sensors[2] : WinBond 1
Possible Temp Sensors[3] : WinBond 1 2N3904
Possible Temp Sensors[4] : WinBond 1 Diode
Possible Temp Sensors[5] : WinBond 2
Possible Temp Sensors[6] : WinBond 2 2N3904
Possible Temp Sensors[7] : WinBond 2 Diode
Possible Temp Sensors[8] : WinBond 3
Possible Temp Sensors[9] : WinBond 3 2N3904
Possible Temp Sensors[10] : WinBond 3 Diode

Selected Temp Sensors[1] : WinBond 1 (1)
Selected Temp Sensors[2] : WinBond 2 (3)
Selected Temp Sensors[3] : WinBond 3 (5)

Possible Voltage Sensors[2] : MBM Fixed

Selected Voltage Sensors[1] : MBM Fixed (2)
Selected Voltage Sensors[2] : MBM Fixed (2)
Selected Voltage Sensors[3] : MBM Fixed (2)
Selected Voltage Sensors[4] : MBM Fixed (2)
Selected Voltage Sensors[5] : MBM Fixed (2)
Selected Voltage Sensors[6] : MBM Fixed (2)
Selected Voltage Sensors[7] : MBM Fixed (2)

Possible Fan Sensors[1] : W836x7HF-1
Possible Fan Sensors[2] : W836x7HF-2
Possible Fan Sensors[3] : W836x7HF-3

Selected Fan Sensors[1] : W836x7HF-1 T1 D4 (26)
Selected Fan Sensors[2] : W836x7HF-2 T1 D4 (27)
Selected Fan Sensors[3] : W836x7HF-3 T1 D4 (28)

Possible Voltage Sub Types[0] : W83627HF Standard 1
Possible Voltage Sub Types[1] : W83627HF Standard 2
Possible Voltage Sub Types[2] : W83627HF Standard 3
Possible Voltage Sub Types[3] : W83627HF Standard 4
Possible Voltage Sub Types[4] : W83627HF Standard 5
Possible Voltage Sub Types[5] : W83627HF Abit BE7/ KX7
Possible Voltage Sub Types[6] : W83627HF Abit NF7
Possible Voltage Sub Types[7] : W83627HF EPoX 8RDA3+
Possible Voltage Sub Types[8] : Abit IC7/IC7-G
Possible Voltage Sub Types[9] : W83627HF Aopen MX3S-T / MX3SP-T
Possible Voltage Sub Types[10] : W83627HF EPoX 8RDA/8RDA+
Possible Voltage Sub Types[11] : W83627HF Standard 6
Selected Voltage Sub Type : W83627HF Aopen MX3S-T / MX3SP-T (9)

--Sensor Chip Readings--

Temperature Readout[1] : 30
Temperature Readout[2] : 70
Temperature Readout[3] : 33
Voltage Readout[1] : 1.456
Voltage Readout[2] : 1.504
Voltage Readout[3] : 3.2
Voltage Readout[4] : 4.94592
Voltage Readout[5] : 11.7344
Voltage Readout[6] : -12.60128
Voltage Readout[7] : -1.296
Fan Readout[1] : 2410
Fan Readout[3] : 2596

---------System---------

Operating System : Microsoft Windows XP (NT 5.2) (Build 3790) Service Pack 1
User : eugenep
Memory in use : 23%
Total Physical Memory : 2088400 KB
Available Physical Memory : 1607256 KB

----------CPU-----------

CPU Speed : 2524 MHz
Nr of CPU's : 1

-------3rd Party--------

ShutDownNow :

----Advanced Settings---

Fan Temp : 0
Custom Temp Table : 0
Startup Delay : 0
2E 4E Enabled : 0
2E Forced : 0
4E Forced : 0
Do Not Reset : 1
SMB Scan Range : $10 - $7F
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Alright, so you've got valid outputs for all aspects of MBM5. Now did you select all of the proper senors in MBM5 so they output data? Look in the high/low section or expand out the dashboard to you can see all the metrics its monitoring. Then once thats all set up, then they should be reported via snmp.
zheka
Posts: 44
Joined: Tue May 23, 2006 11:52 am

Post by zheka »

Hi my good teacher! :-)

Still, I think I miss something. On the attachment you can see the screenshot of the dashboard. It draws data from all sensors, including fans and voltages. My cacti graphs for this host have still are empty for all this parameters (temperature, fan and voltages) . Which version of snmp-informant do I need to install, informant-mbm-10 or informant-std-14?

There's one more interesting thing. The size of files for temperature and voltages are very big. E.g.

ntweb06_mbm5_temp5_80.rrd 19871K
ntweb06_mbm5_volt2_81.rrd 19871K

Even fan's graph is a bit large:

ntweb06_mbm5_fan1_79.rrd 8140184
Is it normal?
Attachments
dashboard.JPG
dashboard.JPG (62.09 KiB) Viewed 4570 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You only need to install the informant-mbm-10 one.

Try manually running the perl script from the command line and see if you get any output

Code: Select all

C:\Documents\Scripts\Cacti\mbm5>perl snmp_mbm5.pl fan 1 public 127.0.0.1 161
fan1:1308.0000 fan2:2556.0000
C:\Documents\Scripts\Cacti\mbm5>perl snmp_mbm5.pl temp 1 public 127.0.0.1 161
temp0:29.0000 temp1:42.0000 temp2:35.0000 temp3:40.0000 temp4:32.0000
C:\Documents\Scripts\Cacti\mbm5>perl snmp_mbm5.pl volt 1 public 127.0.0.1 161
volt0:1.4080 volt2:3.3120 volt3:5.0534 volt4:12.6931
C:\Documents\Scripts\Cacti\mbm5>
If you're not getting anything, then the snmp informant mbm5 portion isn't properly working. Try re-installing it again. Also, in the SNMP service, make sure all of the Agents are enabled.
zheka
Posts: 44
Joined: Tue May 23, 2006 11:52 am

Post by zheka »

Oh, that's better.
Looks like your step by step strategy works, thanks, bro!

I've got outputs from those commands. I only run them at the cacti host against the required windows host
perl snmp_mbm5.pl fan 1 rocommunity xxx.xxx.xxx.xxx 161
and have this data:
fan0:0.0000 fan2:2596.0000

Same with Voltages and Temp.

That could only mean I have problem with my cacti? Graphs are still empty. Where should I look then?
I don't understand why once these rrd files were created
ntweb06_mbm5_fan1_79.rrd
ntweb06_mbm5_temp5_80.rrd
ntweb06_mbm5_volt2_81.rrd
they are not updated anymore.
And their size is too big


And this is the portion from cacti.log file:

CACTID: Poller[0] Host[4] DS[82] WARNING: Result from SCRIPT not valid. Partial Result: ...
10/31/2006 01:25:17 PM - CACTID: Poller[0] Host[11] ERROR: Empty result [192.197.101.80]: 'perl /home/www/cacti/scripts/snm
p_mbm5.pl fan 2 1108ntweb06 192.197.101.80 161'
10/31/2006 01:25:17 PM - CACTID: Poller[0] Host[11] DS[79] WARNING: Result from SCRIPT not valid. Partial Result: ...
10/31/2006 01:25:17 PM - CACTID: Poller[0] Host[11] ERROR: Empty result [192.197.101.80]: 'perl /home/www/cacti/scripts/snm
p_mbm5.pl temp 2 1108ntweb06 192.197.101.80 161'
10/31/2006 01:25:17 PM - CACTID: Poller[0] Host[11] DS[80] WARNING: Result from SCRIPT not valid. Partial Result: ...
10/31/2006 01:25:17 PM - CACTID: Poller[0] Host[11] ERROR: Empty result [192.197.101.80]: 'perl /home/www/cacti/scripts/snm
p_mbm5.pl volt 2 1108ntweb06 192.197.101.80 161'
10/31/2006 01:25:17 PM - CACTID: Poller[0] Host[11] DS[81] WARNING: Result from SCRIPT not valid. Partial Result: ...
10/31/2006 01:25:17 PM - PHPSVR: Poller[0] WARNING: PHP Script File to be included, does not exist
10/31/2006 01:25:17 PM - PHPSVR: Poller[0] WARNING: Function does not exist
10/31/2006 01:25:17 PM - PHPSVR: Poller[0] WARNING: PHP Script File to be included, does not exist
10/31/2006 01:25:17 PM - PHPSVR: Poller[0] WARNING: Function does not exist

What kind of php script is meant here?

Eugene
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Since you're using cacti, you must specify the full path to the perl binary in the data input method (i.e. /bin/perl or whatever it is for linux). That should fix the problem.
zheka
Posts: 44
Joined: Tue May 23, 2006 11:52 am

Post by zheka »

That was the first thing that I double-checked. It turned out that I had to rebuild the cache after changing paths for perl executables.

Anyways, thanks a lot. I wonder how you guys are generous and oriented to us newbies and lame-brains :-)
zheka
Posts: 44
Joined: Tue May 23, 2006 11:52 am

Post by zheka »

One more remark or question.

Is it possible to make legend on Temp, Fan and Volt more userfriendly?
For example on the attached temperature graph one should only guess what are those temperatures. MBM5 at least tells what kind of temperatures are those values - case, cpu and so on.

Eugene
Attachments
graph_image.png
graph_image.png (31.04 KiB) Viewed 4400 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You have to manually name them in the graph. Go to graph management and look at the existing MBM5 graphs. Type in the various field names for the temp/fans/volts and you're set.

I couldn't figure out a way to have cacti automatically populate those fields, hence why it's manual. If you find an automatic way, let me know.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest