[packagers] issue of mon-1.2.0-2.el5.rf.rpm

Wu GuoQuan 4thfire at gmail.com
Thu Oct 14 11:11:16 CEST 2010


Hi,

I’ve trouble in using mon these days.
When I run $monshow.
The DETAIL segment come with so many “0d0a” or “20”. See issue  below for
details.

I gave it a try by installing from source code. And it’s OK.  See OK below
for details.

Then I think this is the reason.
The module Mon::Client come with the rpm package is a little old.
We have to install
ftp://ftp.kernel.org/pub/software/admin/mon/mon-client-1.2.0.tar.gz after
installing the mon rpm package.

Great thanks and best regards!
Dennis

=========================================
issue=========================================

[dwu at gz-dwu03 Mon]$ monshow --detail Web_Srv,http

     server: localhost
       time: Thu Oct 14 15:36:41 2010
      state: scheduler running

Detail for group Web_Srv service http

description
-----------

summary
-------

hosts
-----
    www.baidu.com www.163.com

-----DETAIL-----
HOST20www.163.com:20
ok0aHTTP/1.12020020OK0d0aServer:20nginx0d0aDate:20Thu,201420Oct2020102007:33:2220GMT0d0aContent-Type:20text/html;20charset=GBK0d0aVary:20Accept-Encoding0d0aExpires:20Thu,201420Oct2020102007:34:4220GMT0d0aCache-Control:20max-age=800d0aVary:20User-Agent0d0aVary:20Accept0d0aX-Via:201.120ls74:8020(Cdn20Cache20Server20V2.0),201.120gzqxg212:810520(Cdn20Cache20Server20V2.0)0d0aConnection:20close0d0aAge:2010a0aHOST20www.baidu.com:20
ok0aHTTP/1.12020020OK0d0aDate:20Thu,201420Oct2020102007:33:5120GMT0d0aServer:20BWS/1.00d0aContent-Length:2062180d0aContent-Type:20text/html;charset=gb23120d0aCache-Control:20private0d0aExpires:20Thu,201420Oct2020102007:33:5120GMT0d0aSet-Cookie:20BAIDUID=34C70ACDD3BC346B6ED8405343889909:FG=1;20expires=Thu,2014-Oct-402007:33:5120GMT;20path=/;20domain=.baidu.com0d0aP3P:20CP=2220OTI20DSP20COR20IVA20OUR20IND20COM20220d0aConnection:20Close0a0a
-----DETAIL-----

  opstatus: ok (1)
   exitval: 0
    depend:
   monitor:
last check: 30s ago
next_check: in 00:01:31

========================================= ok
=========================================

[dwu at gz-dwu03 Mon]$ monshow --detail Web_Srv,http

     server: localhost
       time: Thu Oct 14 15:37:13 2010
      state: scheduler running

Detail for group Web_Srv service http

description
-----------

summary
-------

hosts
-----
    www.baidu.com www.163.com

-----DETAIL-----
HOST www.163.com: ok
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 14 Oct 2010 07:33:22 GMT
Content-Type: text/html; charset=GBK
Vary: Accept-Encoding
Expires: Thu, 14 Oct 2010 07:34:42 GMT
Cache-Control: max-age=80
Vary: User-Agent
Vary: Accept
X-Via: 1.1 ls74:80 (Cdn Cache Server V2.0), 1.1 gzqxg212:8105 (Cdn Cache
Server V2.0)
Connection: close
Age: 1

HOST www.baidu.com: ok
HTTP/1.1 200 OK
Date: Thu, 14 Oct 2010 07:33:51 GMT
Server: BWS/1.0
Content-Length: 6218
Content-Type: text/html;charset=gb2312
Cache-Control: private
Expires: Thu, 14 Oct 2010 07:33:51 GMT
Set-Cookie: BAIDUID=34C70ACDD3BC346B6ED8405343889909:FG=1; expires=Thu,
14-Oct-40 07:33:51 GMT; path=/; domain=.baidu.com
P3P: CP=" OTI DSP COR IVA OUR IND COM "
Connection: Close


-----DETAIL-----

  opstatus: ok (1)
   exitval: 0
    depend:
   monitor:
last check: 62s ago
next_check: in 58s
========================================= diff info
=========================================
[dwu at gz-dwu03 ~]$ sudo make install
[sudo] password for dwu:
Installing /usr/lib/perl5/site_perl/5.8.8/Mon/Protocol.pm
Installing /usr/lib/perl5/site_perl/5.8.8/Mon/Config.pm
Installing /usr/lib/perl5/site_perl/5.8.8/Mon/Client.pm
Installing /usr/lib/perl5/site_perl/5.8.8/Mon/SNMP.pm
Installing /usr/share/man/man3/Mon::Config.3pm
Installing /usr/share/man/man3/Mon::Protocol.3pm
Installing /usr/share/man/man3/Mon::Client.3pm
Installing /usr/share/man/man3/Mon::SNMP.3pm Appending installation info to
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/perllocal.pod

[dwu at gz-dwu03 ~]$ md5sum /usr/lib/perl5/*/5.8.8/Mon/*.pm
1c753139ffdd82188bf5f3b7bb0d6337
/usr/lib/perl5/site_perl/5.8.8/Mon/Client.pm
21cfe05e7c25c991c5b5622154591024
/usr/lib/perl5/site_perl/5.8.8/Mon/Config.pm
85ba286874b749b12a936969f06c3ff7
/usr/lib/perl5/site_perl/5.8.8/Mon/Protocol.pm
21585a58bd62eb698c583ee013ee5c22  /usr/lib/perl5/site_perl/5.8.8/Mon/SNMP.pm
91b14e02e6bcdc03783b4b1410321c53
/usr/lib/perl5/vendor_perl/5.8.8/Mon/Client.pm
38066b53917b13c684a35569252a353c
/usr/lib/perl5/vendor_perl/5.8.8/Mon/Protocol.pm
f60424a1920f0874c7667a5ac2fc19d1
/usr/lib/perl5/vendor_perl/5.8.8/Mon/SNMP.pm

[dwu at gz-dwu03 ~]$ grep ^\$VERSION  /usr/lib/perl5/*/5.8.8/Mon/*.pm
/usr/lib/perl5/site_perl/5.8.8/Mon/Client.pm:$VERSION = "1.0000";
/usr/lib/perl5/site_perl/5.8.8/Mon/Config.pm:$VERSION = "1.0000";
/usr/lib/perl5/site_perl/5.8.8/Mon/Protocol.pm:$VERSION = "1.0000";
/usr/lib/perl5/site_perl/5.8.8/Mon/SNMP.pm:$VERSION = "1.0000";
/usr/lib/perl5/vendor_perl/5.8.8/Mon/Client.pm:$VERSION = "0.11";
/usr/lib/perl5/vendor_perl/5.8.8/Mon/Protocol.pm:$VERSION = "0.11";
/usr/lib/perl5/vendor_perl/5.8.8/Mon/SNMP.pm:$VERSION = "0.11";

[dwu at gz-dwu03 ~]$ ls -l  /usr/lib/perl5/*/5.8.8/Mon/*.pm
-r--r--r-- 1 root root 44325 Sep  6  2006
/usr/lib/perl5/site_perl/5.8.8/Mon/Client.pm
-r--r--r-- 1 root root 28662 Jun 18  2004
/usr/lib/perl5/site_perl/5.8.8/Mon/Config.pm
-r--r--r-- 1 root root  7860 Jun 18  2004
/usr/lib/perl5/site_perl/5.8.8/Mon/Protocol.pm
-r--r--r-- 1 root root  5602 Jun 18  2004
/usr/lib/perl5/site_perl/5.8.8/Mon/SNMP.pm
-r--r--r-- 1 root root 42360 Jan 12  2001
/usr/lib/perl5/vendor_perl/5.8.8/Mon/Client.pm
-r--r--r-- 1 root root  7893 Jan 12  2001
/usr/lib/perl5/vendor_perl/5.8.8/Mon/Protocol.pm
-r--r--r-- 1 root root  5497 Jan 12  2001
/usr/lib/perl5/vendor_perl/5.8.8/Mon/SNMP.pm


========================================= package info
=========================================
[dwu at gz-dwu03 ~]$ rpm -qi mon
Name        : mon                          Relocations: (not relocatable)
Version     : 1.2.0                             Vendor: Dag Apt Repository,
http://dag.wieers.com/apt/
Release     : 2.el5.rf                      Build Date: Wed 17 Dec 2008
11:31:38 AM HKT
Install Date: Thu 14 Oct 2010 12:47:30 PM HKT      Build Host:
lisse.hasselt.wieers.com
Group       : Applications/Internet         Source RPM:
mon-1.2.0-2.el5.rf.src.rpm
Size        : 831541                           License: GPL
Signature   : DSA/SHA1, Tue 16 Dec 2008 12:59:55 PM HKT, Key ID
a20e52146b8d79e6
Packager    : Dag Wieers <dag at wieers.com>
URL         : http://www.kernel.org/software/mon/
Summary     : General-purpose resource monitoring system
Description :
Mon is a general-purpose resource monitoring system.  It can be used to
monitor network service availability, server problems, environmental
conditions (i.e., the temperature in a room) or other things. Mon can be
used to test the condition and/or to trigger an action upon failure of the
condition.  Mon keeps the testing and action-taking tasks as separate,
stand-alone programs.

Mon is very extensible.  Monitors and alerts are not a part of mon, but the
distribution comes with a handful of them to get you started. This means
that if a new service needs monitoring, or if a new alert is required, the
mon server will not need to be changed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.repoforge.org/pipermail/packagers/attachments/20101014/f7418076/attachment-0001.html>


More information about the packagers mailing list