KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Text file log

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
Mogge



Joined: 04 Mar 2004
Posts: 83
Location: Denmark

PostPosted: Fri Jun 25, 2004 1:36 am    Post subject: Text file log Reply with quote

Greetings from Denmark!

A have a text file lokking somewhat like this:


Server Name Server Load
-------------------- ------------
SERV01 1505

How can I check if the value '1505' (the load of a citrix server) is > 8000 ?

I´ve tried with a text log search but it´s not that easy...

Very kind regards
Mogens

****** WE ARE WINNING THE EM IN FOOTBALL!!! *******
Back to top
View user's profile Send private message MSN Messenger
boxy_25



Joined: 02 Dec 2003
Posts: 26
Location: France

PostPosted: Fri Jun 25, 2004 6:29 am    Post subject: Reply with quote

Hi,

maybe you can try an external test like a wsh script that scan your file and send HM a result :
1 -> OK
2 -> Bad

Then make an action .

Cédric.

####Think that FRANCE will win the Euro #######
Good luke to denmark !
Back to top
View user's profile Send private message Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Fri Jun 25, 2004 7:29 am    Post subject: Reply with quote

Text Log and Compare Files test methods check file for SPECIFIC string. You may setup test to search "1505" or search "8000" but you cannot setup test to search unknown string.
boxy_25 is right, you need to create some script that will read file and return number to HostMonitor.

Shell Script
http://www.ks-soft.net/hostmon.eng/mframe.htm#tests.htm#chkShell
External
http://www.ks-soft.net/hostmon.eng/mframe.htm#tests.htm#execheck
Active Script
http://www.ks-soft.net/hostmon.eng/mframe.htm#tests.htm#script

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index