
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Need to monitor size of a file in AIX....
Hi guys,
i have one windows OVO server 8.16 and i added one AIX node
Now i want to monitore size of a file from /home/script .
if the size of script file excide 200MB i need a alert .
how can i do this in Measurement threshold policy without using script's.
what options are i need to select in Measurement threshold policy and where i need to give the file location......
help me on this guys...
NOTE: i cheked in OSSPI policies, those are using script for predefined location..
i dont have much knowledge in scripting...
thanks
santhosh


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hello Santosh,
There is no default policy in this case, so you will have to use the script and MT policy in order to acheive the same.
HTH
-KAKA-


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi santhosh,
I would use something like this. This is very basic and could be tweaked to use script-parameters and so on. But I'll leave that to you to figure out! 🙂
#!/usr/bin/perl use strict; use warnings; my $file = "/home/script/file.txt"; my $filesize = -s "$file"; # Maximum allowed size in bytes my $threshold = 1000; if ($filesize >= $threshold) { $Rule->Status(1); $Session->Value("MsgTxt","File $file is $filesize bytes (maximum allowed size is $threshold bytes)"); } else { $Rule->Status(0); }

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Thank you jim and KAKA
@jim that was a nice solution for my question
and i have one more problem
i need to monitor an AIX node service from a Windows management server.
is it possible? if it is possible, how ?
NOTE : i tried using service/process policy, but while fetching service details from AIX node its showing some WMI error(i think it because of different OS platform). pls give some idea on this tooo......
thanks
santhosh


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hello Santosh,
You should have open another thread for this as this is different from the subject of your orignal post and may not bring attention of other forum users. however i will answer your question here.
i need to monitor an AIX node service from a Windows management server.
is it possible? if it is possible, how ?
>>>>> Yes it is possible and This does not matter that you are using OMW or OMU. you can monitor AIX services from OMW. Windows here just means that OM as a apllication running on Windows server.
NOTE : i tried using service/process policy, but while fetching service details from AIX node its showing some WMI error(i think it because of different OS platform). pls give some idea on this tooo......
>>>>> This is because that you can fetch the services from the node only if it is Windows. for UNIX you can put the service name in the input box where it ask for service which you can get by running ps -eaf on the AIX node and remember to put <*> in the parameter.
HTH
-KAKA-

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi kaka,
i want to monitor "gstctl" service status from the location /oracle/dbhome/bin/gsdctl, using the command "/oracle/dbhome/bin/gsdctl stat".
if the service is down stat the i need a critical alert.
how can i do this in service/process policy..
is anyother way to do this.....
help me on this kaka
Note: i created service/perocess policy (below screen shot) but i am getting error alert stating that "the policy uses VB script it is not supported in UNIX node" and also i get another error alert stating same VB error
you specify about parameter <*> . where i need to give this parameter ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
HI KAKA_2
FYI.....
i checked the ps -eaf on the AIX node there is no process is running in the name of "gsdctl",
GSDCTL is a service ......
help me on this kaka and all......


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
What is the output of lssrc -a?
-KAKA-

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi kaka,
Attached is the output of "lssrc -a" . what is the use of this command ?
FYI
i created a tool in OMW to check the gsdctl service is running or not using the command
"/oracle/dbhome/bin/gsdctl stat", i got the output as "GSD is running on the local node".
if i give the command "gsdctl stat" without full path in the tool it will show the error message of "Command not found"
so from the above path only i can check the gsdctl service status...
please note this....
Thanks,
santhosh


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hello Santosh,
Attached is the output of "lssrc -a" . what is the use of this command ?
>> I was expecting this service to be listed here but it is not and this may be reason that you can not monitor it using service/process monitoring policy.
now only solution is left using an shell script.
I also have no AIX machine here to test the script.
-KAKA-

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi KAKA,
Thanks for your replies
i will try to do this by script....
if u found any script ,post it
Thanks to all others.
Thanks,
santhosh