[hobbit] RE: Termusers.pl issue
Galen Johnson
Galen.Johnson at sas.com
Tue Apr 22 19:06:21 CEST 2008
If this is cut and past, you still have invalid xml with the launch examples line:
<! externals launch examples
also, for the bat file, try using the following:
<externals>
<setting name="timer" value="3m" />
<setting name="logstimer" value="60s" />
<load value="cmd /c ..\ext\termusers.bat" />
<!-- externals launch examples
<load value="cscript mybbscript.vbs" />
<load value="memory.exe" />
<load value="cscript wlbs.vbs" timer="15m" />
<load value="cluster.exe" timer="90s" />
-->
</externals>
From: Cielo Claudio-ACC131 [mailto:claudio.cielo at motorola.com]
Sent: Tuesday, April 22, 2008 12:56 PM
To: hobbit at hswn.dk
Subject: RE: [hobbit] RE: Termusers.pl issue
always in purple state :-(
________________________________
From: Rafal Roginela [mailto:Rafal.Roginela at AmeriCashLoans.net]
Sent: Tuesday, April 22, 2008 6:37 PM
To: hobbit at hswn.dk
Subject: RE: [hobbit] RE: Termusers.pl issue
Hi,
The setting is commented out in the config file!
(This is the start)<!-- <load value="memory.exe" />
<load value="termusers.bat" />
<load value="cscript wlbs.vbs" timer="15m" />
<load value="cluster.exe" timer="90s" /> -->(this is the end of the comment)
Change the file to read:
<externals>
<setting name="timer" value="3m" />
<setting name="logstimer" value="60s" />
<load value="termusers.bat" />
<! externals launch examples
<!-- <load value="cscript mybbscript.vbs" />
<!-- <load value="memory.exe" />
<load value="cscript wlbs.vbs" timer="15m" />
<load value="cluster.exe" timer="90s" /> -->
</externals>
Hope it helps.. :-) I've done that a couple of times..
Rafal Roginela
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
________________________________
From: Cielo Claudio-ACC131 [mailto:claudio.cielo at motorola.com]
Sent: Tuesday, April 22, 2008 11:25 AM
To: hobbit at hswn.dk
Subject: RE: [hobbit] RE: Termusers.pl issue
There are no errors in the event log. However, I created termusers.bat files and stored it in c:\Program Files\BBWin\ext but the issue is still present...
<externals>
<setting name="timer" value="3m" />
<setting name="logstimer" value="60s" />
<! externals launch examples
<!-- <load value="cscript mybbscript.vbs" />
<!-- <load value="memory.exe" />
<load value="termusers.bat" />
<load value="cscript wlbs.vbs" timer="15m" />
<load value="cluster.exe" timer="90s" /> -->
</externals>
________________________________
From: Galen Johnson [mailto:Galen.Johnson at sas.com]
Sent: Tuesday, April 22, 2008 5:30 PM
To: hobbit at hswn.dk
Subject: [hobbit] RE: Termusers.pl issue
Are you seeing any errors in the event logs? One thing you may have to do is put a bat file wrapper (like termusers.bat) that calls the command instead of the perl command directly. I thought this was no longer needed. Etienne may have some better insight as to why BBWin doesn't want to run it as is.
=G=
From: Cielo Claudio-ACC131 [mailto:claudio.cielo at motorola.com]
Sent: Tuesday, April 22, 2008 11:10 AM
To: hobbit at hswn.dk
Subject: [hobbit] Termusers.pl issue
Hi
i'm trying to use your termusers.pl external script but it seems that the script doesn't run automatically and on Hobbit the status is always in purple . if i run it manually from a command line the script run normally and the status is updated on Hobbit.
below my BBWin.cfg:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<bbwin>
<setting name="bbdisplay" value="zwg39mon01.comm.mot.com:1984" />
<!-- <setting name="bbdisplay" value="yoursecondbbdisplay:port" />-->
<!-- BB Pager Part -->
<!--<setting name="usepager" value="false" />
<setting name="bbpager" value="zwg39mon01.comm.mot.com:1984" />
<setting name="pagerlevels" value="red yellow purple" /> -->
<!-- bbwin mode local or central -->
<setting name="mode" value="local" />
<setting name="configclass" value="win32" />
<setting name="autoreload" value="true" />
<setting name="timer" value="5m" />
<load name="cpu" value="cpu.dll"/>
<load name="disk" value="disk.dll"/>
<load name="externals" value="externals.dll"/>
<load name="memory" value="memory.dll"/>
<load name="msgs" value="msgs.dll"/>
<load name="procs" value="procs.dll"/>
<load name="stats" value="stats.dll"/>
<load name="svcs" value="svcs.dll"/>
<load name="uptime" value="uptime.dll"/>
<setting name="loglevel" value="3" />
<setting name="logpath" value="C:\Program Files\BBWin\logs\BBWin.log"/>
<!-- If true, the agent will report reporting failures as warning events -->
<setting name="logreportfailure" value="true" />
</bbwin>
<cpu>
<!-- If true, the agent will always report with green status -->
<setting name="alwaysgreen" value="false" />
<setting name="default" warnlevel="90" paniclevel="95" delay="3" />
</cpu>
<disk>
<!-- If true, the agent will always report with green status -->
<setting name="alwaysgreen" value="false" />
<!-- Level can be given by % or size unit mb, gb, tb -->
<setting name="default" warnlevel="85%" paniclevel="95%" />
<!-- custom rules examples
<setting name="C" warnlevel="70%" paniclevel="400mb" />
<setting name="E" ignore="true" /> -->
<!-- If true, the agent will check remote drives -->
<setting name="remote" value="false" />
<!-- If true, the agent will that cd/dvdrom drives are empty -->
<setting name="cdrom" value="false" />
</disk>
<externals>
<setting name="timer" value="3m" />
<setting name="logstimer" value="60s" />
<! externals launch examples
<!-- <load value="cscript mybbscript.vbs" />
<!-- <load value="memory.exe" />
<load value="C:\APPS\Perl\bin\perl.exe C:\ntutils\termusers.pl" />
<load value="cscript wlbs.vbs" timer="15m" />
<load value="cluster.exe" timer="90s" /> -->
</externals>
<memory>
<!-- If true, the agent will always report with green status -->
<setting name="alwaysgreen" value="false" />
<setting name="physical" warnlevel="78" paniclevel="98" />
<setting name="page" warnlevel="70" paniclevel="90" />
<setting name="virtual" warnlevel="78" paniclevel="90" />
</memory>
<msgs>
<setting name="alwaysgreen" value="false" />
<match logfile="System" type="error" delay="1h" alarmcolor="red" />
<match logfile="System" type="warning" alarmcolor="yellow" />
<match logfile="Application" type="error" delay="1h" alarmcolor="red" />
<match logfile="Application" type="warning" alarmcolor="yellow" />
<match logfile="Security" type="fail" />
<!-- Some ignore rules examples
<ignore logfile="Application" eventid="1030" />
<ignore logfile="System" source="W32Time" />
-->
</msgs>
<procs>
<!-- some procs rules example
<setting name="drwtsn" rule="-1" alarmcolor="red" />
<!-- <setting name="pageant.exe" rule="=1" comment="Putty agent deamon" /> -->
</procs>
<svcs>
<!-- If true, the agent will always report with green status -->
<setting name="alwaysgreen" value="false" />
<!-- If true, the agent will restart all "automatic services" which would be stopped-->
<setting name="autoreset" value="false" />
<setting name="alarmcolor" value="yellow" />
<!-- The line bellow show you svcs rules. If the "Automatic Updates" service is stopped, it will be automatically restarted and a red status will be sent
until the service get it's correct status -->
<setting name="Automatic Updates" value="started" autoreset="true" alarmcolor="red" />
</svcs>
<uptime>
<setting name="delay" value="30m" />
</uptime>
</configuration>
The script .pl is saved in c:\ntutils.
Any suggestions to fix the issue ?
Thanks
Claudio Cielo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20080422/34dfd0a9/attachment.html>
More information about the Xymon
mailing list