Win32 - Motherboard Monitor 5 via SNMP

Templates, scripts for templates, scripts and requests for templates.

Moderators: Moderators, Developers

Author
Message
kermitthefrog
Posts: 9
Joined: Mon Oct 10, 2005 5:45 am

#16 Post by kermitthefrog » Mon Oct 10, 2005 5:32 pm

sorry to be a pain but..

I get some empty graphs.
I am not too sure about that error:
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\Documents and Settings\Administrator>ppm install net-snmp
Error: PPD for 'Crypt-DES.ppd' could not be found.

C:\Documents and Settings\Administrator>
Thanks for your help

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

#17 Post by BSOD2600 » Mon Oct 10, 2005 6:19 pm

1) What version of ActivePerl do you have installed?
2) Is it in your system path?
3) Did you try: ppm Crypt-DES ?
4) Also paste the output of: ppm repository.

kermitthefrog
Posts: 9
Joined: Mon Oct 10, 2005 5:45 am

#18 Post by kermitthefrog » Tue Oct 11, 2005 11:30 am

BSOD2600 wrote:1) What version of ActivePerl do you have installed?
2) Is it in your system path?
3) Did you try: ppm Crypt-DES ?
4) Also paste the output of: ppm repository.
1) perl -v
C:\Documents and Settings\Administrator>perl -v

This is perl, v5.8.7 built for MSWin32-x86-multi-thread
(with 7 registered patches, see perl -V for more detail)

Copyright 1987-2005, Larry Wall

Binary build 813 [148120] provided by ActiveState http://www.ActiveState.com
ActiveState is a division of Sophos.
Built Jun 6 2005 13:36:37

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.


C:\Documents and Settings\Administrator>
4)
C:\Documents and Settings\Administrator>ppm repository
Warning: save C:\Perl\site\lib/ppm-conf\cmdline.cfg: Permission denied.
=> Configuration not saved.
Repositories:
[1] ActiveState PPM2 Repository
[2] ActiveState Package Repository
Warning: save C:\Perl\site\lib/ppm-conf\cmdline.cfg: Permission denied.
=> Configuration not saved.
Warning: save C:\Perl\site\lib/ppm-conf\repositories.cfg: Permission denied.
=> Configuration not saved.
Warning: save C:\Perl\site\lib/ppm-conf\clientlib.cfg: Permission denied.
=> Configuration not saved.

C:\Documents and Settings\Administrator>


2) perl is in my system path, yes.

3)
trying ppm Crypt-DES:
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\Documents and Settings\Administrator>ppm Crypt-DES
Warning: save C:\Perl\site\lib/ppm-conf\cmdline.cfg: Permission denied.
=> Configuration not saved.
Unknown or ambiguous command 'Crypt-DES'; type 'help' for commands.
Warning: save C:\Perl\site\lib/ppm-conf\cmdline.cfg: Permission denied.
=> Configuration not saved.
Warning: save C:\Perl\site\lib/ppm-conf\repositories.cfg: Permission denied.
=> Configuration not saved.
Warning: save C:\Perl\site\lib/ppm-conf\clientlib.cfg: Permission denied.
=> Configuration not saved.

C:\Documents and Settings\Administrator>

wvr120364
Posts: 16
Joined: Tue May 06, 2003 7:48 am

#19 Post by wvr120364 » Mon Nov 07, 2005 7:06 pm

Found this when searching, the solution helped me out
ActiveState ActivePerl PPM Error "Error: PPD for 'Crypt-DES.ppd' could not be found."

So you've installed ActiveState's ActivePerl and you're feeling good. You get down to work and start developing.

Eventually you realize you need some modules installed to make your developing life a lot easier so you fire up PPM, the Programmer's Package Manager, and start to look for some of those needed packages.

You search around, see a few you like, and proceed to 'install MYPACKAGENAME'.



And that's when it happens. An error. One that states:

Error: PPD for 'Crypt-DES.ppd' could not be found.



What is it? It's simply saying that the DES cryptological package is not installed. This package is needed for a lot of things within PPM (apparently) and as such you end up not being able to install 95% of the packages out there because all that happens is that error is returned.



How to fix it? This one is simple enough. You need to add a new NON-US repository to the list. I chose http://theoryx5.uwinnipeg.ca/cgi-bin/pp ... PMServer58, because it looked good.

Anyway, now, to add it. Open up ppm and type in:

rep add Canada http://theoryx5.uwinnipeg.ca/cgi-bin/pp ... PMServer58

and hit enter. You've just added a new repository to PPM. Now go on and type in:

install Crypt-DES

Surprise, it works, and now you can feel free to install any other package listed without worry of error.



Why? Well after really hunting around ActiveState's website for awhile, I came to the bottom of this page which says:

Unavailable Packages
Cryptographic Packages Unlike the United States, the Export Control List of Canada places no significant restriction on the export of cryptographic software; however, the Canadian Federal Government does require that companies, organizations or individuals that wish to distribute cryptographic software get a permit in order to do so. ActiveState does not currently have this permission, so you must currently access other repositories for the following modules


It then goes on to list all the crypto modules, including DES.
Wietze

jengstro
Cacti User
Posts: 156
Joined: Tue Nov 15, 2005 12:14 pm

#20 Post by jengstro » Mon Nov 28, 2005 10:27 am

Is there anything like this for server class machines? Else I would assume that SNMP is my only option?
[size=75]Cacti - 0.8.6h + patches
PHP - 5.1.2
ZendOptimizer - 2.6.2
FastCGI - 0.6
MySQL - 4.1.15
Cactid - 0.8.6g
rrdtool - 1.2.x
IIS6[/size]

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

#21 Post by BSOD2600 » Mon Nov 28, 2005 1:19 pm

Sever class? Well if MBM5 supports your servers chipset, then you're in luck. Otherwise, you'll need to find some other software which can read the chipset, output the results to a file, and write a script for cacti to parse the results out.

jengstro
Cacti User
Posts: 156
Joined: Tue Nov 15, 2005 12:14 pm

#22 Post by jengstro » Mon Nov 28, 2005 3:21 pm

Ok. Thanks.

I could not find the chip set for any HP servers. I will have to wait on the hardware graphs then. Ahh well. :)
[size=75]Cacti - 0.8.6h + patches
PHP - 5.1.2
ZendOptimizer - 2.6.2
FastCGI - 0.6
MySQL - 4.1.15
Cactid - 0.8.6g
rrdtool - 1.2.x
IIS6[/size]

ehall
Cacti User
Posts: 246
Joined: Fri Dec 09, 2005 3:42 pm

#23 Post by ehall » Sat Dec 17, 2005 2:28 pm

FYI this is working pretty good for one of my machines. The only real problem with it is that the -12v and -5v readings aren't being caught by MBM and are therefore provided as 255 values by SNMP Informant MBM.

The rest of the machines are unsupported by MBM 5 so no joy on those.

edit--I see that development on MBM has stopped, so this is only going to be a short-term solution. I know there are some WMI hooks for hardware sensors but I'm not sure how well that stuff is fleshed out or supported.

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

#24 Post by BSOD2600 » Sat Dec 17, 2005 7:39 pm

My script takes that into account and does not output the 255 values.

Yea, it's quite sad MBM5 devolpment was stopped. Was/is a great tool. Nothing comes close to what it did.

ehall
Cacti User
Posts: 246
Joined: Fri Dec 09, 2005 3:42 pm

#25 Post by ehall » Sun Dec 18, 2005 2:37 pm

It turns out that this ASUS mobo doesn't provide -12V or -5V readings, which is why MBM doesn't see them. Interesting.

psykokwak
Posts: 11
Joined: Sat May 27, 2006 12:15 pm

#26 Post by psykokwak » Mon May 29, 2006 3:20 pm

Is there a way to install net-snmp into cygwin perl interpretor ?
Or the snmp_mbm5.pl script exists on PHP language ?

thanks.

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

#27 Post by BSOD2600 » Mon May 29, 2006 4:36 pm

psykokwak wrote:Is there a way to install net-snmp into cygwin perl interpretor ?
Why do you need that?
psykokwak wrote:Or the snmp_mbm5.pl script exists on PHP language ?
I haven't had the need to convert it to PHP. Feel free if you want.

psykokwak
Posts: 11
Joined: Sat May 27, 2006 12:15 pm

#28 Post by psykokwak » Tue May 30, 2006 3:37 am

BSOD2600 wrote:
psykokwak wrote:Is there a way to install net-snmp into cygwin perl interpretor ?
Why do you need that?
We need use cygwin for cacti. And on cygwin we already have perl.
So, I think to install ActivPerl for windows is double use.


another question :

when I use getif to request this OID 1.3.6.1.4.1.9600.1.10.6.1.5 , I have got the temp of my primary CPU. but if I use net-snmp, I have an error :
snmpget -v 1 -c public 127.0.0.1 1.3.6.1.4.1.9600.1.10.6.1.5 said that it there isn't information to this node :(

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

#29 Post by BSOD2600 » Tue May 30, 2006 10:20 am

You don't need cygwin perl for my script to work. Perl for Windows works just fine.

As for the OID not working... you need to take that up with the makers of the MBM addon at SNMP-Informant.com. Sounds like it only works with the Microsoft SNMP agent.

psykokwak
Posts: 11
Joined: Sat May 27, 2006 12:15 pm

#30 Post by psykokwak » Wed May 31, 2006 2:32 pm

Hi all,
I have a little problem when I poll this script.
this is the error (debuging mode) :

Code: Select all

 05/31/2006 09:04:19 PM - CACTID: Poller[0] Host[12] DS[57] SCRIPT: perl D:/htdocs/pub/cacti/scripts/snmp_mbm5.pl volt 1 public 192.168.0.10 161, output: U
05/31/2006 09:04:19 PM - CACTID: Poller[0] Host[12] DS[57] WARNING: Result from SCRIPT not valid. Partial Result: ...
05/31/2006 09:04:19 PM - CACTID: Poller[0] Host[12] ERROR: Empty result [192.168.0.10]: 'perl D:/htdocs/pub/cacti/scripts/snmp_mbm5.pl volt 1 public 192.168.0.10 161'
but, when I execute directly the script, it return the good values :

Code: Select all

C:\Documents and Settings\Administrator>perl D:/htdocs/pub/cacti/scripts/snmp_mbm5.pl volt 1 public 192.168.0.10 161
volt0:1.7915 volt1:2.4800 volt2:3.2480 volt3:4.8536 volt4:12.5892 volt5:-12.2043
:(

Post Reply