Hi,

apply Service "memory" {
        import "generic-service"
        vars.memory_win_warn = 70%
        vars.memory_win_crit = 90%
        check_command = "memory-windows"
        assign where host.name == NodeName
}

I guess that should do it.


On 26-Oct-15 11:12 AM, Rohit Gupta wrote:
> Hi Horatiu,
> 
> Thanks for replying back.
> 
> I have read this document on your last email but little bit confused in 
> passing the parameters. If you can give an example for this that would be gr8 
> and it will help me pass the arguments for rest of the commands too. Much 
> appreciated in advance.  
> 
> Kind Regards,
> 
> Rohit Gupta
> IT Infrastructure Manager
> Synchronized Communications Ltd
> 
> 
> Unit 5, Stonefield Way,
> South Ruislip Middlesex
> London  UK– HA4 0JS
> 
> DDI: +44(0)208 185 6163
> Fax: +44(0)208 845 3657
> Email: [email protected] 
> Web: www.syncoms.co.uk 
>  please don't print this e-mail unless you really need to
> Confidentiality Notice | Legal | Disclaimer
> 
> 
> 
> 
> -----Original Message-----
> From: icinga-users [mailto:[email protected]] On Behalf 
> Of Horatiu N
> Sent: 23 October 2015 18:43
> To: [email protected]
> Subject: Re: [icinga-users] Service related question for remote node (windows)
> 
> http://docs.icinga.org/icinga2/latest/doc/module/icinga2/toc#!/icinga2/latest/doc/module/icinga2/chapter/windows-plugins#windows-plugins-memory-windows
> 
> Percentage based thresholds can be used by adding a '%' to the threshold 
> value. Keep in mind that memory_win_unit is applied before the value is 
> calculated.
> 
> It sais so plainly right there.
> 
> On 23-Oct-15 7:17 PM, Rohit Gupta wrote:
>> Hi All,
>>
>> If anyone can give an example to pass the arguments value 
>> "memory_win_warn" " memory_win_crit" on
>>
>> apply Service "memory" {
>>      import "generic-service"
>>      check_command = "memory-windows"
>>      assign where host.name == NodeName
>> }
>>
>> Much appreciated
>>
>> Kind Regards,
>>
>> Rohit Gupta
>> IT Infrastructure Manager
>> Synchronized Communications Ltd
>>
>>
>> Unit 5, Stonefield Way,
>> South Ruislip Middlesex
>> London  UK– HA4 0JS
>>
>> DDI: +44(0)208 185 6163
>> Fax: +44(0)208 845 3657
>> Email: [email protected]
>> Web: www.syncoms.co.uk
>>  please don't print this e-mail unless you really need to 
>> Confidentiality Notice | Legal | Disclaimer
>>
>>
>>
>>
>> -----Original Message-----
>> From: Rohit Gupta
>> Sent: 23 October 2015 11:09
>> To: [email protected]
>> Subject: RE: [icinga-users] Service related question for remote node 
>> (windows)
>>
>> Hi Horatiu,
>>
>> Thanks a lot for your support. You're a star.
>>
>> Another questions related to the same config: what will be the configuration 
>> if I have to place check points on the memory and disk usage? For instance 
>> if I want to set warning message if memory utilization reaches 80% and 
>> critical indicator when it reaches 90%? Also the same indicators for disk 
>> space check? 
>>
>> Thanks in advance :-)
>>
>> Kind Regards,
>>
>> Rohit Gupta
>>
>>
>> -----Original Message-----
>> From: icinga-users [mailto:[email protected]] On 
>> Behalf Of Horatiu N
>> Sent: 22 October 2015 18:02
>> To: [email protected]
>> Subject: Re: [icinga-users] Service related question for remote node 
>> (windows)
>>
>> Hello,
>> From what you're telling me it looks like you need to setup a check memory 
>> service.
>> Should be like this on your windows server:
>> in C:\Program Files (x86)\ICINGA2\etc\icinga2\conf.d\services.conf
>> or wherever you installed it :)
>> just add this (check already existing examples for inspiration)
>>
>> apply Service "memory" {
>>      import "generic-service"
>>      check_command = "memory-windows"
>>      assign where host.name == NodeName
>> }
>>
>> then restart the service or reload it i dont know exactly how that works in 
>> windows, and wait a couple of seconds for the config to be sent to the 
>> master then on the master issue a icinga2 node list and you should see smth 
>> like :
>>
>> Node 'windowsserver' (last seen: Thu Oct 22 20:00:07 2015)
>>     * Host 'windowsserver'
>>         * Service 'ping4'
>>         * Service 'ping6'
>>         * Service 'disk'
>>         * Service 'disk C:'
>>         * Service 'icinga'
>>         * Service 'load'
>>         * Service 'procs'
>>         * Service 'swap'
>>         * Service 'users'
>>         * Service 'memory' <---- there .
>>
>> then just update your config
>> icinga2 node update-config
>> service icinga2 restart
>> and check your front-end. that should do it.
>> more on this plugin's specifics here :
>> http://docs.icinga.org/icinga2/latest/doc/module/icinga2/toc#!/icinga2
>> /latest/doc/module/icinga2/chapter/windows-plugins#windows-plugins-mem
>> ory-windows
>>
>> Best wishes :)
>>
>> Horatiu.
>>
>> On 22-Oct-15 6:29 PM, Rohit Gupta wrote:
>>> Dear,
>>>
>>>  
>>>
>>> I am newbie and have been assigned to configure Icinga2 as our 
>>> monitoring tool. So far, I have been successful in installing Icinga2 
>>> on Ubuntu server 15.04 following the setup docs and also been 
>>> successful in installing the remote client (windows Server) icinga 
>>> agent application and synchronizing with Master node.
>>>
>>>  
>>>
>>> Now, I can see the new server on the icinga-web but I am unable to 
>>> see ‘mem’ service on it. Can you please assist as what do I have to 
>>> do in order to get ‘mem’ service listed? Also if I have to setup the 
>>> arguments on disk capacity & mem (for instance warn, critical etc) 
>>> then on which files I have to make changes in order to make it happen.
>>>
>>>  
>>>
>>> Thanks in advance for your generosity and time to assist.
>>>
>>>  
>>>
>>> Kind Regards,
>>>
>>>  
>>>
>>> *Rohit Gupta*
>>>
>>> IT Infrastructure Manager
>>>
>>>
>>> * *
>>>
>>>  
>>>
>>>
>>>
>>> _______________________________________________
>>> icinga-users mailing list
>>> [email protected]
>>> https://lists.icinga.org/mailman/listinfo/icinga-users
>>>
>>
>> _______________________________________________
>> icinga-users mailing list
>> [email protected]
>> https://lists.icinga.org/mailman/listinfo/icinga-users
>>
> 
> _______________________________________________
> icinga-users mailing list
> [email protected]
> https://lists.icinga.org/mailman/listinfo/icinga-users
> 

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to