yes sure,

currently I am using below command plugin and service configuration,
with this I am able to monitor memory usage.













*object CheckCommand "memory" {    import "plugin-check-command"    command
= [ PluginDir + "/check_memory"]    arguments = {        "-w" =
"$memory_warning$%"        "-c" = "$memory_critical$%"    }
vars.memory_warning = 70    vars.memory_critical = 85}*






*apply Service "memory" {  import "generic-service"  check_command =
"memory"  assign where host.name <http://host.name> == NodeName}*












But When It comes to threshold, though I have specified 70% and 85% for
warning and critical, it throws critical error when memory usage is ~ 45%.


Below data copied from icinga2 dashboard.

I am using icinga2 v2.3.4 and icinga web2.

Performance data
*Label**Value**Min**Max**Warning**Critical*  memory3.63 GiB0.00 B8.00 GiB5.60
GiB6.80 GiB

MEMORY CRITICAL - 45.3424% free

Regards,
Tejas

On Mon, Jun 8, 2015 at 4:27 PM, Michael Friedrich <
[email protected]> wrote:

>  Am 08.06.2015 um 12:23 schrieb Tejas Gadaria:
>
>   Hi Michael,
>
>  I have configuration issue,
>
>  It's working now.
>
>
> Could you please share your solution for the others looking into a similar
> problem (e.g. searching the list archive from google).
>
> Thanks,
> Michael
>
>
>
>  Regards,
>  Tejas
>
> On Sun, Jun 7, 2015 at 11:14 PM, Michael Friedrich <
> [email protected]> wrote:
>
>> And where's the checkcommand object config/plugin?
>>
>>  Michael
>>
>>
>> Am Freitag, 5. Juni 2015 schrieb Tejas Gadaria :
>>
>>>  Hi,
>>>
>>>  I am trying to monitor memory usage on windows server 2008 R2 with
>>> below configuration on client side in service.conf,
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *apply Service "memory" {   import "generic-service"   check_command =
>>> "memory"   assign where host.name <http://host.name> == NodeName *
>>> *}*
>>>
>>>  While trying to start icinga service it throws configuration error as
>>> below, where line:138 is *apply Service "memory" *
>>>
>>>
>>>
>>>
>>> *critical/config: Error: Invalid value: Object 'memory' (Type:
>>> 'Service') at C:\P rogram Files
>>> (x86)\ICINGA2\etc\icinga2/conf.d/services.conf:138 -> Key check_com mand:
>>> Object 'memory' of type 'CheckCommand' does not exist. critical/config: 1
>>> error*
>>>
>>>
>>>
>>>  Regards,
>>>  Tejas
>>>
>>
>> _______________________________________________
>> icinga-users mailing list
>> [email protected]
>> https://lists.icinga.org/mailman/listinfo/icinga-users
>>
>>
>
>
> _______________________________________________
> icinga-users mailing 
> [email protected]https://lists.icinga.org/mailman/listinfo/icinga-users
>
>
>
> --
> Michael Friedrich, DI (FH)
> Application Developer
>
> NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg
> Tel: +49 911 92885-0 | Fax: +49 911 92885-77
> GF: Julian Hein, Bernd Erk | AG Nuernberg HRB18461
> http://www.netways.de | [email protected]
>
> ** OSBConf 2015 - September - osbconf.org **
> ** OSMC 2015 - November - netways.de/osmc **
>
> _______________________________________________
> 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

Reply via email to