Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: MasterSleepy on February 04, 2008, 09:33:10 AM
-
Hello all,
Following this post here (http://forums.contribs.org/index.php?topic=36326.0), I've update the sysmon contrib this weekend.
I add a new graph to display the number of users that are connected to server using samba.
RPM:
smeserver-sysmon-5.1-1.noarch.rpm (http://www.vanhees.cc/modules.php?op=modload&name=CmodsDownload&file=index&req=viewdownloaddetails&lid=300&ttitle=smeserver-sysmon-5.1-1.noarch.rpm)
sRPM:
smeserver-sysmon-5.1-1.src.rpm (http://www.vanhees.cc/modules.php?op=modload&name=CmodsDownload&file=index&req=viewdownloaddetails&lid=301&ttitle=smeserver-sysmon-5.1-1.src.rpm)
Regards,
MasterSleepy.
-
Hi
Thanks by the rpm, but I have problems:
1) not sure what repo must be enable to install using yum localinstall (rpm -Uvh fail by dependencies)
I used --enablerepo=* ... but do not like to do.
2) After installed, must do "signal-event post-upgrade; signal-event reboot" ??
Without it I got a 403 error!
Forbidden
You don't have permission to access /server-manager/cgi-bin/sysmon on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
3) After reboot, I still get same error message.
This is a newly installed server, just have 2 or 3 extra rpm (ModIndex, LAT and displayconf installed and already removed)
-
Thanks MasterSleepy,
I really enjoy this contrib. I'll try an update later today.
I noticed that there is a new version of "rrdtool" (1.2.23-3.el4) on the repo smecontribs that would break the previous version of smeserver-sysmon. Can this new version use it? Also, will you be addeing your contribs to the smecontribs repo?
BTW ... I can't get "wget" to work with your links. do i need to use and special switches?
Thanks again
Kevin
-
Hello,
@Kevinb
Actually I didn't test with the new version of rrdtool, in a near future I'll do that ;-)
For wget the file, try :
wget "http://www.vanhees.cc/index.php?name=CmodsDownload&file=index&req=getit&lid=300"
To add rpm to repo, I have to take some time to know it work, but I don't really have time for that.
@jader
I'll check for that soon and come back when I've a solution.
Regards.
-
Thanks MasterSleepy,
But, I get the same errors as jader.
Has anyone gotten this resolved?
Can anyone point me to a place I can get the old RPM?
Kevin
-
Here is the old one:
http://www.vhconsult.com/download/sme70/sysmon/smeserver-sysmon-5.0-4.noarch.rpm (http://www.vhconsult.com/download/sme70/sysmon/smeserver-sysmon-5.0-4.noarch.rpm)
MasterSleepy.
-
[Mon Feb 04 13:55:06 2008] [error] [client 127.0.0.1] Symbolic link not allowed: /etc/e-smith/web/panels/manager/cgi-bin/sysmon, referer: https://sme7/server-manager/navigation
To fix, delete the old entry (incomplete)
rm -rf /etc/e-smith/web/panels/manager/cgi-bin/sysmon
then make a new one:
cd /etc/e-smith/web/panels/manager/cgi-bin/
ln -s ../../../functions/sysmon sysmon
-
[Mon Feb 04 13:55:06 2008] [error] [client 127.0.0.1] Symbolic link not allowed: /etc/e-smith/web/panels/manager/cgi-bin/sysmon, referer: https://sme7/server-manager/navigation
To fix, delete the old entry (incomplete)then make a new one:
That fixed the 403 error... but still no graphs! (and yes... I wait more than 5 minute!)
AND I cannot see a SambaUsers on top menu, just :
System Monitor
System:
CPU Load/CPU Memory Proc/Que Drives Uptime
Hosts:
'Hourly' Graph (1 Minute Average)
'Daily' Graph (5 Minute Average)
'Weekly' Graph (30 Minute Average)
'Monthly' Graph (2 Hour Average)
'Yearly' Graph (1 Day Average)
-
Hello all,
Here is the version 5.1-2 that solved the problem i the server-manager panel.
RPM:
smeserver-sysmon-5.1-2.noarch.rpm (http://www.vanhees.cc/modules.php?op=modload&name=CmodsDownload&file=index&req=viewdownloaddetails&lid=300&ttitle=smeserver-sysmon-5.1-2.noarch.rpm)
sRPM:
smeserver-sysmon-5.1-2.src.rpm (http://www.vanhees.cc/modules.php?op=modload&name=CmodsDownload&file=index&req=viewdownloaddetails&lid=301&ttitle=smeserver-sysmon-5.1-2.src.rpm)
@jader:
Please make an install of the new version please. A new entry should appear below Hosts.
Regards,
MasterSleepy.
-
Does the statement to clean the /var/lib/rrd/ apply?
Last time I did it and as Jader points out, it does not create new ones.
Thanks,
-
No you don't have to clean all rrd.
Just a new one will be create.
Reg,
MasterSleepy.
-
OK,
I upgraded (yum localupdate *) to smeserver-sysmon-5.1-1, then to smeserver-sysmon-5.1-2, re-configure, rebooted and deleted all the files in /var/lib/rrd and the page access error went away but I now have no graphics (its been about 15 minutes now). I also do not have any files /var/lib/rrd and the sysmon log is empty.
I only have the images (they are broken links now) I had before .... I do not see any images for system sensors, UPS, Samba, etc.
Please let me know what I should try next.
Thanks,
Kevin
-
I upgraded (yum localupdate *) to smeserver-sysmon-5.1-1, then to smeserver-sysmon-5.1-2, re-configure, rebooted and deleted all the files in /var/lib/rrd and the page access error went away but I now have no graphics (its been about 15 minutes now). I also do not have any files /var/lib/rrd and the sysmon log is empty.
I did the same and it seems that since the time of installation of the faulty (5.1-1) smeserver-sysmon no data is graphed even after an upgrade to the new version (5.1-2).
Just out of interest... do you test before releasing?
-
This is a no-go :(
After install it no longer graphs.
-
I did the same and it seems that since the time of installation of the faulty (5.1-1) smeserver-sysmon no data is graphed even after an upgrade to the new version (5.1-2).
Just out of interest... do you test before releasing?
I tried to locate the logfiles, and in /var/log I find a sysmon and a sysmon.old, but they both have a size of 0 bytes... :-(
On doing some further investigation it seems that the scripts that init scripts are not symlinked properly:
[root@homer etc]# ll /etc/rc.d/rc*.d/*sysmon
lrwxrwxrwx 1 root root 12 Feb 4 21:22 /etc/rc.d/rc0.d/K03sysmon -> ../init.d/sy
lrwxrwxrwx 1 root root 12 Feb 4 21:22 /etc/rc.d/rc1.d/K03sysmon -> ../init.d/sy
lrwxrwxrwx 1 root root 12 Feb 4 21:22 /etc/rc.d/rc2.d/K03sysmon -> ../init.d/sy
lrwxrwxrwx 1 root root 12 Feb 4 21:22 /etc/rc.d/rc3.d/K03sysmon -> ../init.d/sy
lrwxrwxrwx 1 root root 12 Feb 4 21:22 /etc/rc.d/rc4.d/K03sysmon -> ../init.d/sy
lrwxrwxrwx 1 root root 12 Feb 4 21:22 /etc/rc.d/rc5.d/K03sysmon -> ../init.d/sy
lrwxrwxrwx 1 root root 12 Feb 4 21:22 /etc/rc.d/rc6.d/K03sysmon -> ../init.d/sy
lrwxrwxrwx 1 root root 16 Feb 4 22:54 /etc/rc.d/rc7.d/S97sysmon -> ../init.d/sy
Since the broken symlinks prevent the sysmon service from starting no graphdata is collected,
I have fixed all symlinks manually and started sysmon after that. I will wait a few minutes, but my guess is the collecting of data will resume.
-
Since the broken symlinks prevent the sysmon service from starting no graphdata is collected,
I have fixed all symlinks manually and started sysmon after that. I will wait a few minutes, but my guess is the collecting of data will resume.
Unfortunately...
[root@homer rc0.d]# service sysmon start
Starting sysmon daemon: Unrecognized escape \s passed through at /usr/sbin/sysmon line 762.
syntax error at /usr/sbin/sysmon line 783, near "if $ERR
"
syntax error at /usr/sbin/sysmon line 790, near "}"
Execution of /usr/sbin/sysmon aborted due to compilation errors.
[FAILED]
MasterSleepy I sincerely suggest you thoroughly test your new release (if you not already do so) before releasing ot to the public.
-
Unfortunately...
[root@homer rc0.d]# service sysmon start
Starting sysmon daemon: Unrecognized escape \s passed through at /usr/sbin/sysmon line 762.
syntax error at /usr/sbin/sysmon line 783, near "if $ERR
"
syntax error at /usr/sbin/sysmon line 790, near "}"
Execution of /usr/sbin/sysmon aborted due to compilation errors.
[FAILED]
The first error (line 762 should be fixed by replacing \s with a real space which would make the line read like I suggested to you:
my $sambausernbr = `/usr/bin/smbstatus -b|grep '^[ 0-9]'|wc -l`;
[root@homer rc0.d]# service sysmon start
Starting sysmon daemon: syntax error at /usr/sbin/sysmon line 783, near "if $ERR
"
syntax error at /usr/sbin/sysmon line 790, near "}"
Execution of /usr/sbin/sysmon aborted due to compilation errors.
[FAILED]
Now to fix the compilation error...
-
Now to fix the compilation error...
Which should be fixed by encapsulating the $ERR with brackets which would make line 783 read:
if ($ERR)
After that the service starts succesfully, the /var/log/sysmon log start filling up with:[root@homer sbin]# tail /var/log/sysmon
grep: Invalid regular expression
WARNING: The "printer admin" option is deprecated
grep: Invalid regular expression
WARNING: The "printer admin" option is deprecated
So I guess it is working now.
Here is the full patch[root@homer sbin]# diff -u sysmon /usr/sbin/sysmon.new
--- /usr/sbin/sysmon 2008-02-04 23:19:54.000000000 +0100
+++ /usr/sbin/sysmon.new 2008-02-04 23:19:14.000000000 +0100
@@ -759,7 +759,7 @@
}
}
}
- my $sambausernbr = `/usr/bin/smbstatus -b|grep ^[\s0-9]|wc -l`;
+ my $sambausernbr = `/usr/bin/smbstatus -b|grep '^[ 0-9]'|wc -l`;
RRDs::create("$RRDDIR/$SAMBAUSERRRD.rrd","-s","60",
"DS:$SAMBAUSER:GAUGE:180:0:U",
"RRA:MIN:0.5:1:1500",
@@ -779,7 +779,7 @@
"RRA:MAX:0.5:1440:797") unless -e "$RRDDIR/$SAMBAUSERRRD.rrd";
RRDs::update("$RRDDIR/$SAMBAUSERRRD.rrd","N:" .trim($sambausernbr));
my $ERR=RRDs::error;
- if $ERR
+ if ($ERR)
{
print "ERROR while updating mydemo.rrd: $ERR\n";
rename("$RRDDIR/$SAMBAUSERRRD.rrd","$RRDDIR/$SAMBAUSERRRD.bad");
@@ -788,4 +788,3 @@
sleep(60-time%60);
}
}
-
-
So I guess it is working now.
Still no data in the graphs however...
-
Hello all,
Here is a new version that solved a lot of problem, sorry for the inconvenient.
Symbolic link are now correct.
Daemon file is debug, thanks cactus.
RPM:
smeserver-sysmon-5.1-3.noarch.rpm (http://www.vanhees.cc/modules.php?op=modload&name=CmodsDownload&file=index&req=viewdownloaddetails&lid=300&ttitle=smeserver-sysmon-5.1-3.noarch.rpm)
sRPM:
smeserver-sysmon-5.1-3.src.rpm (http://www.vanhees.cc/modules.php?op=modload&name=CmodsDownload&file=index&req=viewdownloaddetails&lid=301&ttitle=smeserver-sysmon-5.1-3.src.rpm)
regards,
MasterSleepy.
-
Many Thanks!
Works like a charm now! :smile:
-
OK! I celebrated too early :(
Samba Graphs OK, but everything else has sttoped!
[Tue Feb 05 02:41:24 2008] [error] [client 127.0.0.1] [Tue Feb 5 02:41:24 2008] sysmon: Name "esmith::LOADCPU_MAX" used only once: possible typo at /etc/e-smith/web/panels/manager/cgi-bin/sysmon line 309., referer: https://sme7.provobums.com/server-manager/cgi-bin/sysmon?state=detailed&typegraph=CPU
[Tue Feb 05 02:41:24 2008] [error] [client 127.0.0.1] [Tue Feb 5 02:41:24 2008] sysmon: Name "esmith::secmonth" used only once: possible typo at /etc/e-smith/web/panels/manager/cgi-bin/sysmon line 53., referer: https://sme7.provobums.com/server-manager/cgi-bin/sysmon?state=detailed&typegraph=CPU
[Tue Feb 05 02:41:24 2008] [error] [client 127.0.0.1] [Tue Feb 5 02:41:24 2008] sysmon: Name "esmith::LATENCY_MAX" used only once: possible typo at /etc/e-smith/web/panels/manager/cgi-bin/sysmon line 511., referer: https://sme7.provobums.com/server-manager/cgi-bin/sysmon?state=detailed&typegraph=CPU
[Tue Feb 05 02:41:24 2008] [error] [client 127.0.0.1] [Tue Feb 5 02:41:24 2008] sysmon: Name "esmith::sechour" used only once: possible typo at /etc/e-smith/web/panels/manager/cgi-bin/sysmon line 50., referer: https://sme7.provobums.com/server-manager/cgi-bin/sysmon?state=detailed&typegraph=CPU
[Tue Feb 05 02:41:24 2008] [error] [client 127.0.0.1] [Tue Feb 5 02:41:24 2008] sysmon: Name "esmith::MEM2_MAX" used only once: possible typo at /etc/e-smith/web/panels/manager/cgi-bin/sysmon line 424., referer: https://sme7.provobums.com/server-manager/cgi-bin/sysmon?state=detailed&typegraph=CPU
[Tue Feb 05 02:41:24 2008] [error] [client 127.0.0.1] [Tue Feb 5 02:41:24 2008] sysmon: Name "esmith::CURRENT" used only once: possible typo at /etc/e-smith/web/panels/manager/cgi-bin/sysmon line 71., referer: https://sme7.provobums.com/server-manager/cgi-bin/sysmon?state=detailed&typegraph=CPU
[Tue Feb 05 02:41:24 2008] [error] [client 127.0.0.1] [Tue Feb 5 02:41:24 2008] sysmon: Name "esmith::secyear" used only once: possible typo at /etc/e-smith/web/panels/manager/cgi-bin/sysmon line 54., referer: https://sme7.provobums.com/server-manager/cgi-bin/sysmon?state=detailed&typegraph=CPU
[Tue Feb 05 02:41:24 2008] [error] [client 127.0.0.1] [Tue Feb 5 02:41:24 2008] sysmon: Name "esmith::secday" used only once: possible typo at /etc/e-smith/web/panels/manager/cgi-bin/sysmon line 51., referer: https://sme7.provobums.com/server-manager/cgi-bin/sysmon?state=detailed&typegraph=CPU
[Tue Feb 05 02:41:24 2008] [error] [client 127.0.0.1] [Tue Feb 5 02:41:24 2008] sysmon: Use of uninitialized value in pattern match (m//) at /etc/e-smith/web/panels/manager/cgi-bin/sysmon line 1076., referer: https://sme7.provobums.com/server-manager/cgi-bin/sysmon?state=detailed&typegraph=CPU
[Tue Feb 05 02:41:24 2008] [error] [client 127.0.0.1] [Tue Feb 5 02:41:24 2008] sysmon: Use of uninitialized value in string eq at /etc/e-smith/web/panels/manager/cgi-bin/sysmon line 1087., referer: https://sme7.provobums.com/server-manager/cgi-bin/sysmon?state=detailed&typegraph=CPU
-
So to clarify once agai (Sorry guys, I just want to make this clear):
* If you are upgrading from a previous version you must remove
all rrd files from /var/lib/rrd or graphs will not display
correctly.
Does apply and you have to do it, otherwise existing graphs won't display correctly!
-
Well I updated to smeserver-sysmon-5.1-3.
Removed all the files in /var/lib/rrd.
All I get is the Samba graph.
The only file I get in /var/lib/rrd is samba.rrd.
Kevin
-
Sorry to hear that Kevin, did you wait 5 minutes?
If so remove the contrib and reinstall again , it should start graphing again.
-
Hi
Now the contrib works. But just after a install, remove and reinstall.
And just on a machine with sme7admin installed. On my newest production server it don't work.
Even without a remove and reinstall it do not create all .rrd files on /var/lib/rrd
Just as info I'm letting here my status (even after a 5 minute wait).
After first install, just two of them:
[root@pantera ~]# ls -la /var/lib/rrd/*
-rw-r--r-- 1 root root 108156 Feb 5 08:54 /var/lib/rrd/samba.rrd
-rw-r--r-- 1 root root 2328 Feb 5 08:54 /var/lib/rrd/sysmon.stats
after removing and reinstalling:
[root@pantera ~]# ls -la /var/lib/rrd/*
-rw-r--r-- 1 root root 320876 Feb 5 08:59 /var/lib/rrd/drive_sda1.rrd
-rw-r--r-- 1 root root 427236 Feb 5 08:59 /var/lib/rrd/host_gateway.rrd
-rw-r--r-- 1 root root 427236 Feb 5 08:59 /var/lib/rrd/iface_eth0.rrd
-rw-r--r-- 1 root root 427236 Feb 5 08:59 /var/lib/rrd/iface_eth1.rrd
-rw-r--r-- 1 root root 182812 Feb 5 08:59 /var/lib/rrd/processors0.rrd
-rw-r--r-- 1 root root 182812 Feb 5 08:59 /var/lib/rrd/processors1.rrd
-rw-r--r-- 1 root root 2660796 Feb 5 08:59 /var/lib/rrd/processors.rrd
-rw-r--r-- 1 root root 108156 Feb 5 08:59 /var/lib/rrd/samba.rrd
-rw-r--r-- 1 root root 2341716 Feb 5 08:59 /var/lib/rrd/sysmon.rrd
-rw-r--r-- 1 root root 2328 Feb 5 08:59 /var/lib/rrd/sysmon.stats
-rw-r--r-- 1 root root 746316 Feb 5 08:59 /var/lib/rrd/ups.rrd
MasterSleepy, I think there are a little problem ... about recreate .rrd files. Not sure what, but on second install it's fixed.
Good luck on your hunting.
Jáder
-
So to clarify once agai (Sorry guys, I just want to make this clear):
* If you are upgrading from a previous version you must remove
all rrd files from /var/lib/rrd or graphs will not display
correctly.
Does apply and you have to do it, otherwise existing graphs won't display correctly!
Another suggestion as a contribution to the RPM as you can easily do so by adding this to the postun section of the SPEC file:
%postun
rm -rf /var/lib/rrd/*
See also the Install/Erase-time Scripts (http://www.rpm.org/max-rpm/s1-rpm-inside-scripts.html#S2-RPM-INSIDE-ERASE-TIME-SCRIPTS) paragraph in Chapter 13: Inside the Spec File of "the Maximum RPM: Taking the Red Hat Package Manager to the Limit" on the http://www.rpm.org website.
-
OK .... the remove and reinstall worked!
Thanks everyone,
Kevin
-
Hello all,
I'll modify the contribs for the end of this week.
It will include the move of rrd file to a backup directory.
For the moment I create an entry in the wiki for this contrib.
http://wiki.contribs.org/Sysmon (http://wiki.contribs.org/Sysmon)
Regards.
MasterSleepy.
-
Hello MasterSleepy,
Thanks for all of your work on this great contrib. I have an issue, question and request.
When I cut and paste the commands from the wiki:
wget "http://www.vanhees.cc/modules.php?op=modload&name=CmodsDownload&file=index&req=viewdownloaddetails&lid=317"
wget "ftp://fr2.rpmfind.net/linux/dag/redhat/el4/en/i386/dag/RPMS/perl-rrdtool-1.0.50-3.el4.rf.i386.rpm"
wget "http://www.vanhees.cc/modules.php?op=modload&name=CmodsDownload&file=index&req=viewdownloaddetails&lid=300"
I get:
root root 35131 Feb 6 07:21 modules.php?op=modload&name=CmodsDownload&file=index&req=viewdownloaddetails&lid=300
root root 31200 Feb 6 07:21 modules.php?op=modload&name=CmodsDownload&file=index&req=viewdownloaddetails&lid=317
root root 185467 Feb 6 07:21 perl-rrdtool-1.0.50-3.el4.rf.i386.rpm
The two files from your website do not get pulled down.
This does work however:
wget "http://www.vanhees.cc/index.php?name=CmodsDownload&file=index&req=getit&lid=300"
wget "http://www.vanhees.cc/index.php?name=CmodsDownload&file=index&req=getit&lid=317"
wget "ftp://fr2.rpmfind.net/linux/dag/redhat/el4/en/i386/dag/RPMS/perl-rrdtool-1.0.50-3.el4.rf.i386.rpm"
On your website you show graphs of temperatore, RPM, Voltages, etc. I have never seen these graphs in any of my installs. Am I missing something?
Your graph of the hard drive space is a summation of all the mount points (if you have a 200 Gb 90% full, and a 500gb disk 10% full, the total capacty is shown as 700Gb 33% full). This is misleading. If you have time I believe it would be more informative to have a graph for each mount point like the "df -h" command.
Thanks again,
Kevin
-
Thanks Kevin, I've made wrong link in the wiki.
Regarding your graph, that's very strange, witch version of sysstat, rrdtool and perl-rrdtool did you install.
Regards,
MasterSleepy.
-
sysstat.i386 5.0.5-16.rhel4
perl-rrdtool.i386 1.0.50-3.el4.rf
rrdtool.i386 1.0.50-3.el4.rf
-
I have two productions install of sysmon 5.1.3. One it´s working (have sme7admin installed). Other was a newly installed (this weekend) server w/7.1.3 (don´t works).
The working version has:
[root@pantera ~]# rpm -qi sysstat
Name : sysstat Relocations: (not relocatable)
Version : 5.0.5 Vendor: CentOS
Release : 15.0.1.el4 Build Date: Fri 18 May 2007 08:11:26 AM B RT
Install Date: Fri 27 Jul 2007 06:58:18 PM BRT Build Host: builder4.centos.org
[root@pantera ~]# rpm -qi perl-rrdtool
Name : perl-rrdtool Relocations: (not relocatable)
Version : 1.0.50 Vendor: Dag Apt Repository, http://dag.wieers.com/apt/
Release : 1.2.el4.rf Build Date: Fri 05 Aug 2005 06:55:01 PM BRT
Install Date: Tue 24 Jul 2007 03:42:48 PM BRT Build Host: lisse.leuven.wieers.com
[root@pantera ~]# rpm -qi rrdtool
Name : rrdtool Relocations: (not relocatable)
Version : 1.0.50 Vendor: Dag Apt Repository, http://dag.wieers.com/apt/
Release : 1.2.el4.rf Build Date: Fri 05 Aug 2005 06:55:01 PM BRT
Install Date: Tue 24 Jul 2007 03:42:47 PM BRT Build Host: lisse.leuven.wieers.com
[root@pantera ~]# rpm -qi smeserver-sysmon
Name : smeserver-sysmon Relocations: (not relocatable)
Version : 5.1 Vendor: (none)
Release : 3 Build Date: Tue 05 Feb 2008 12:51:03 AM BRST
Install Date: Tue 05 Feb 2008 08:53:18 AM BRST Build Host: smedev.test.be
This help you ?
-
It looks like I have the same versions.
It may be hardware related. I am running on a Dell and two IBM's.
The "/usr/sbin/sensors-detect" command does not run on the two IBMS's because of hardware issues and I have always had trouble with Dell sensors.
It's not a big issue for me I was just wondering if I was missing software, a config or a command somewhere.
Kevin
-
Hello Kevin,
OK for sensors, it's hardware related, but some graph should work.
samba user: using command smbstatus.
Disk spaces: using df
latency: ping are used
.
.
.
Can you stop the service :
service sysmon stop
and try to launch it manually
/usr/sbin/sysmon
that can maybe crash with an error message.
In a near future I've to add several debug message in this contribs to help solving that kind of problem.
Soon ;-)
Regards,
MasterSleepy.
-
Hi MasterSleepy,
Samba, Disk Space and Latency are all working fine.
I did a stop and start without issue and without any error messages.
As I mentioned before, it would be more usefull to have a Disk Space plot for each mount point.
Thanks,
Kevin
-
OK Kevin, I'll see what I can do.
Regards,
MasterSleepy.
-
MasterSleepy
I have read all the above and tried a few command line commands. I have even uninstalled, reinstalled several time removing the rrd file everytime. All I get is a placeholder where the graphs should be.
Any Idea's?
Teviot
-
Hi,
I follow the instructions from the wiki. It seems only samba graphs appears but no data appears on the graphs also
Regards,
Rocel
-
Hello All,
A new version will come this week.
In this new version, I'll add several debug assistant regarding the number of problem.
Also in this version, recording data for each disk are working, display not again but maybe I'll find the solution.
Regards,
MasterSleepy.
-
here is another issue for you. In the message log I get the following event repeating every minute while sysmon is on:
Feb 12 22:10:00 gollum upsd[4398]: Connection from 127.0.0.1
Feb 12 22:10:00 gollum upsd[4398]: Client on 127.0.0.1 logged out
If I stop sysmon then the events stop.
Seems a little chatty to me. Is there a bug or a side effect perhaps?
otherwise, it looks good.
Christian
-
Hello Christian,
Those messages are correct, each minutes sysmon connect to your ups to catch information.
Maybe by limiting syslog or changing nut log level reporting will solved this.
Regards,
MasterSleepy.
-
Hello all,
Here the new version I promise.
This new version can be easily debug.
It add also separate graphics for HD.
RPM:
smeserver-sysmon-6.0-1.noarch.rpm (http://www.vanhees.cc/index.php?name=CmodsDownload&file=index&req=viewdownloaddetails&lid=300)
sRPM:
smeserver-sysmon-6.0-1.src.rpm (http://www.vanhees.cc/index.php?name=CmodsDownload&file=index&req=viewdownloaddetails&lid=301)
BEWARE if you update from previous version you may have some problem with service parameters.
At command line, check the following:
db configuration show sysmon
If nothing display, enter the following command:
db configuration set sysmon service status enabled debug release
service sysmon stop
service sysmon start
I'll complet the wiki asap.
Regards,
MasterSleepy.
-
Works great MasterSleepy.
However I could only get it to work by removing the old one, rebooting, installing the new one and rebooting again.
The db commands did not work.
Kevin
-
my recipe was similar. A straight update didn't work even if I removed the rrd files. I had to remove and re-install and then do the normal post yum of
signal-event post-upgrade; signal-event reboot
-
MasterSleepy,
First I like to thank you for this contrib. I installed it a newly install SME 7.2 and now working ok. Now i have a question with voltage and temperature graphs how do i enable this. I don't know that this graph exist since installing the previous version of sysmon i don't have that graphs.
Regards,
Rocel
-
MasterSleepy
There is an update available rrdtool.i386 1.2.23-3.el4 - smecontribs which seems to break sysmon.
I have uninstalled all 3 rpm's and reinstall using the latest sysmon rpm.
Have you any suggestions?
Teviot
-
MasterSleepy
There is an update available rrdtool.i386 1.2.23-3.el4 - smecontribs which seems to break sysmon.
I have uninstalled all 3 rpm's and reinstall using the latest sysmon rpm.
Have you any suggestions?
Teviot
The same problem take place with sme7admind:
"sme7admin has been written to work with rrdtool 1.0.x
series, if you upgrade rrdtool it will break. If nothing else uses rrdtool
juste downgrade it." This is documented in a bug assigned to this contrib.
-
The same problem take place with sme7admind:
"sme7admin has been written to work with rrdtool 1.0.x
series, if you upgrade rrdtool it will break. If nothing else uses rrdtool
juste downgrade it." This is documented in a bug assigned to this contrib.
Then I would suggest specifying a maximum version in the requirements in the SPEC file.This way the contrib will not install with a newer version of RRD tool is installed and if RRD tool is not installed will drag in a version that works along with the sysmon contrib.
-
Hello Cactus,
You have totally right.
I change spec and rebuild the contribs, now it's 6.0-2 version.
Regards,
MasterSleepy.
-
In the wiki, the installation line is;
yum localinstall rrdtool-1.0.50-3.el4.rf.i386.rpm perl-rrdtool-1.0.50-3.el4.rf.i386.rpm smeserver-sysmon-5.1-3.noarch.rpm
It needs to be updated to be
yum localinstall rrdtool-1.0.50-3.el4.rf.i386.rpm perl-rrdtool-1.0.50-3.el4.rf.i386.rpm smeserver-sysmon-6.0-2.noarch.rpm
It had me scratching my head for a bit until I worked out the previous line had me downloading the current version and not the 5.1-3 version.... :-)
-
Hello,
Wiki is now uptodate.
thanks for feedback.
Regards,
MasterSleepy.
-
Question
Is it safe to install the current update for SME Server "rrdtool.i386 1.2.23-3.el4" yet?
Teviot
-
No !! it isn't safe!
Restriction are made in spec file so that only rrdtool 1.0 can be installed.
Regards,
MasterSleepy.
-
No !! it isn't safe! Restriction are made in spec file so that only rrdtool 1.0 can be installed.
Hello MasterSleepy,
I am trying to upgrade some servers from smecontribs and have excluded rrdtool to ensure that it does not break another contrib (sme7admind). I wish to have sysmon upgraded. This is what happen:
#Modified /etc/yum.conf to exclude problematic packages:
[smecontribs]
enabled=1
mirrorlist=file:///etc/yum.repos.d/mirrors-smecontribs
name=SME Server - contribs
gpgcheck=1
enablegroups=1
exclude=rrdtool rrdtool-perl librrd
#Doing yum update:
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package smeserver-updates.noarch 0:1.2-3.el4.sme set to be updated
---> Package perl-Unicode-String.i386 0:2.09-6.el4 set to be updated
---> Package smeserver-userpanel.noarch 0:0.9-11.el4.sme set to be updated
---> Package smeserver-vacation.noarch 0:1.0-14.el4.sme set to be updated
---> Package tzdata.noarch 0:2007k-2.el4 set to be updated
---> Package smeserver-mailsorting.noarch 0:1.2-11.el4.sme set to be updated
---> Package krb5-libs.i386 0:1.3.4-54.el4_6.1 set to be updated
---> Package smeserver-remoteuseraccess.noarch 0:1.2-16.el4.sme set to be updated
---> Package awstats.noarch 0:6.7-1.el4.rf set to be updated
---> Package smeserver-userpanels.noarch 0:1.0-7.el4.sme set to be updated
---> Package smeserver-sysmon.noarch 0:6.1-1.el4.sme set to be updated
---> Package sarg.i386 0:2.2.3.1-1.el4.rf set to be updated
--> Running transaction check
--> Processing Dependency: rrdtool >= 1.2 for package: smeserver-sysmon
--> Processing Dependency: fping for package: smeserver-sysmon
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package fping.i386 0:2.4-1.b2.2.el4.rf set to be updated
--> Running transaction check
--> Processing Dependency: rrdtool >= 1.2 for package: smeserver-sysmon
--> Finished Dependency Resolution
Error: Missing Dependency: rrdtool >= 1.2 is needed by package smeserver-sysmon
Why does sysmon try to pull >=1.2 ???
Thanks
chris
-
Also: the wikis at the moment state:
yum localinstall rrdtool-1.0.50-3.el4.rf.i386.rpm perl-rrdtool-1.0.50-3.el4.rf.i386.rpm smeserver-sysmon-6.0-2.noarch.rpm
I install/upgrade using these packages, it works fine.
Then I do a yum update again smecontribs repo, it tries to pull smeserver-sysmon-6.1-1.el4.sme.
Where does this package comes from?
If one attempt to just upgrade existing smeserver-sysmon-6.0-2 from smecontribs, it tries to pull more deps:
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
rrdtool-perl i386 1.2.27-2.el4 smecontribs 34 k
replacing perl-rrdtool.i386 1.0.50-3.el4.rf
Updating:
smeserver-sysmon noarch 6.1-1.el4.sme smecontribs 26 k
Installing for dependencies:
fping i386 2.4-1.b2.2.el4.rf smecontribs 32 k
libart_lgpl i386 2.3.16-3 base 69 k
Updating for dependencies:
rrdtool i386 1.2.27-2.el4 smecontribs 446 k
-
Hi Chris,
I'm sorry, but it's not my contrib.
For the last release is smeserver-sysmon-6.0-2.noarch.rpm
It's not on the repository.
Sorry,
Regards,
MasterSleepy.
-
Hi Chris,
I'm sorry, but it's not my contrib.
For the last release is smeserver-sysmon-6.0-2.noarch.rpm
It's not on the repository.
Sorry,
Regards,
MasterSleepy.
oooops.... My apologies for wasting your time.
You are correct and I am totally confused.
-
I look within the contrib in spec
changelog are not uptodate.
and packager are : Contribs.org <http://contribs.org>
I suggest contribs team to remove that contrib from the repository, to prevent problem like that!
MasterSleepy.
-
I look within the contrib in spec
changelog are not uptodate.
and packager are : Contribs.org <http://contribs.org>
I suggest contribs team to remove that contrib from the repository, to prevent problem like that!
MasterSleepy.
I am the original author of the contrib. I never published the updates for 7 but I had done them internally. I had also updated it to work with rrdtool 1.2. The graphs have also been cleaned up and look a little better. As there has been so many complaints about sysmon not working with 1.2 and it has taken so long for a fix/patch to come out I pushed out a version that will work.
The contrib has been in smecontribs for quite a while. That is where we want all contribs. As far as I can tell the only data element that 6.1 doesn't collect that 6.0 does collect is the number of connected samba users. It may not graph all data but it is being collected. I suggest that we take what is in smecontribs and enhance it to include what people are used to. Please raise bugs in bugzilla for lacking features or bugs you find and then everyone can benefit from it.
-
Hello everyone,
FYI
Well I removed the older version, deleted the /var/lib/rrd folder and installed the new one with the requirements and it looks like Memory, Hard Drive, Uptime and Network are broken.
I noticed that the /var/lib/rrd folder has repopulated with what appears to be some of the old installs rrd files.
Kevin
-
Well I removed the older version, deleted the /var/lib/rrd folder and installed the new one with the requirements and it looks like Memory, Hard Drive, Uptime and Network are broken.
Kevin
Kevin check : http://bugs.contribs.org/show_bug.cgi?id=4143
This appears to be a similar issue. You should fill a new bug report about your particular circumstances (deletion of old, not upgrade).
-
Thanks that did it!
service sysmon stop
rm /var/lib/rrd/*.rrd
service sysmon start
Kevin
-
I am the original author of the contrib. I never published the updates for 7 but I had done them internally. I had also updated it to work with rrdtool 1.2. The graphs have also been cleaned up and look a little better. As there has been so many complaints about sysmon not working with 1.2 and it has taken so long for a fix/patch to come out I pushed out a version that will work.
The contrib has been in smecontribs for quite a while. That is where we want all contribs. As far as I can tell the only data element that 6.1 doesn't collect that 6.0 does collect is the number of connected samba users. It may not graph all data but it is being collected. I suggest that we take what is in smecontribs and enhance it to include what people are used to. Please raise bugs in bugzilla for lacking features or bugs you find and then everyone can benefit from it.
Hi Shad,
You are totally right, you are the original author of that contrib.
I've made a mistake when I adapt your contribs for version 7 of sme and add several functionnality, I'll should rebrand the contrib with an other name.
That's what I do now, I've publish smeserver-system_monitor, url still the same.
I keep rrdtool version 1.0, to keep compatibility with sme7admin.
bye,
MasterSleepy
-
I've publish smeserver-system_monitor, url still the same.
I keep rrdtool version 1.0, to keep compatibility with sme7admin.
We still have a problem:
(i) If people using the old version of MasterSleepy's contrib (called smeserver-sysmon) enable smecontribs repo, Shad's smeserver-sysmon will try to upgrade etc... A way around this would be to run:
db yum_repositories setprop smecontribs Exclude rrdtool,rrdtool-perl,librrd,smeserver-sysmon
expand-template /etc/yum.conf
I tested this (thanks pfloor for guidance in another post), and it works OK.
(ii) If people upgrade to MasterSleepy's latest contrib (now called smeserver-system_monitor) to maintain compatibility with sme7admin etc... , then I suspect that rrdtool found in the smecontribs repo will cause problem also.
A way around this would be to just run:
db yum_repositories setprop smecontribs Exclude rrdtool,rrdtool-perl
expand-template /etc/yum.conf
I have not tested this.
If the above is correct, it may be good adding a note to the wiki ?
Edited: an afterthought: In an ideal world, we should (in this order):
1) Fix sme7admin to work with the latest version of rrdtool. Apparently it is not a huge job.
2) Combine the two "Sysmon" into one contrib including SMB monitoring etc, and have this contrib stored in the smecontribs repo.
I wish I could do this, but coding is not my bag.