[hobbit] Can I do macro in hobbit-client.cfg likehobbit-alerts.cfg ?
T.J. Yang
tj_yang at hotmail.com
Wed Oct 3 03:23:55 CEST 2007
> Date: Tue, 2 Oct 2007 18:04:10 -0400
> From: Galen.Johnson at sas.com
> To: hobbit at hswn.dk
> Subject: RE: [hobbit] Can I do macro in hobbit-client.cfg likehobbit-alerts.cfg ?
>
> Just curious but if you're going to require that cron be running on all your hosts, can't you just add it to your default at the bottom of the file and add exceptions to the host defs? (don't get me wrong, I do understand the need for nested macros...just asking for this particular example)
Agree with your point and excuse the bad example of using "cron". I should have use other process as example.
tj
> =G=
>
> -----Original Message-----
> From: Trent Melcher [mailto:trent.melcher at sitel.com]
> Sent: Tuesday, October 02, 2007 5:51 PM
> To: hobbit at hswn.dk
> Subject: RE: [hobbit] Can I do macro in hobbit-client.cfg likehobbit-alerts.cfg ?
>
> On Tue, 2007-10-02 at 16:29 -0500, T.J. Yang wrote:
>> Glad to know I am not the only one has this need. I am using following work-around solution(IMHO) for now.
>>
> Im doing the same for now, it just gets ugly when you have 40 servers
> you need to define and could use the one rule to do it, and you have
> anywhere from 50 to 60 rules like this. Im trying to consolidate to
> make the file a little more manageable for other folks that arent as
> savy with this stuff.
>
> Trent
>
>
>>
>> HOST=%(a|b).com
>> PROC sendmail 1 -1 red
>> PROC cron 1 -1 red
>>
>> HOST=%(b1|b2).com
>> PROC syslog 1 -1 red
>> PROC cron 1 -1 red
>>
>>
>> T.J. Yang
>>
>>> From: trent.melcher at sitel.com
>>> To: hobbit at hswn.dk
>>> Date: Tue, 2 Oct 2007 15:40:57 -0500
>>> Subject: Re: [hobbit] Can I do macro in hobbit-client.cfg like hobbit-alerts.cfg ?
>>>
>>> On Tue, 2007-10-02 at 14:52 -0500, T.J. Yang wrote:
>>>> I am looking for following MACRO(R1) syntax to work in hobbit-client.cfg beside hobbit-alerts.cfg
>>>>
>>>> $A=a.com|b.com
>>>> PROC sendmail 1 -1 red
>>>> $B=b1.com|b2.com
>>>> PROC syslog 1 -1 red
>>>> $ALL=$A|$B
>>>> PROC cron 1 -1 red
>>>>
>>>> So all 4 machines will have cron process monitored beside group A have sendmail and group B have syslog processes monitored.
>>>>
>>>> Is above syntax supported in hobbit-client.cfg ?
>>>
>>> I asked this same question awhile back and never received an answer, but
>>> I tries a couple different ways and never could get it to work.
>>>
>>> ------------my original post-------------
>>> Can the same technique used in the hobbit-alerts.cfg for defining a
>>> group of hosts be used in the hobbit-clients.cfg? Example:
>>>
>>> $HG_NOTES=(athena|ids|isis).foo.com
>>>
>>> HOST=%$HG_NOTES
>>> PROC notes TRACK=notes "TEXT=Lotus Notes"
>>>
>>> ------------my original post-------------
>>> Thanks
>>>
>>> Trent
>>>
>>>
>>>
>>>>
>>>> R1: http://www.hswn.dk/hobbit/help/manpages/man5/hobbit-alerts.cfg.5.html
>>>>
>>>> T.J. Yang
>>>>
>>>> _________________________________________________________________
>>>> Help yourself to FREE treats served up daily at the Messenger Café. Stop by today.
>>>> http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGLM_OctWLtagline
>>>> To unsubscribe from the hobbit list, send an e-mail to
>>>> hobbit-unsubscribe at hswn.dk
>>>>
>>>>
>>>
>>> To unsubscribe from the hobbit list, send an e-mail to
>>> hobbit-unsubscribe at hswn.dk
>>>
>>>
>>
>> _________________________________________________________________
>> Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare!
>> http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews
>> To unsubscribe from the hobbit list, send an e-mail to
>> hobbit-unsubscribe at hswn.dk
>>
>>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
>
>
_________________________________________________________________
Climb to the top of the charts! Play Star Shuffle: the word scramble challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct
More information about the Xymon
mailing list