Custom Status Field strings and warning levels
Izz Abdullah
izz_abdullah at inbox.com
Wed Jun 18 03:41:47 CEST 2008
Ok...I guess I should have played around a bit more before posting. The -w and -c switches work accordingly for the COUNTER defs. Would still ask assistance in formatting the Status Information field.
Regards,
Izz
> -----Original Message-----
> From: izz_abdullah at inbox.com
> Sent: Tue, 17 Jun 2008 16:53:43 -0800
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Custom Status Field strings and warning levels
>
> Hi all,
>
> I would like to format the data returned from check commands in the
> status information field of the GUI. For example, I would like to add
> text after the check command has returned only an integer value, or
> another example I have brought up previously, divide the result by say
> 1024 to view in KB (when returned in bytes) or MB (when returned in KB).
> Any ideas?
>
> I am using COUNTERs with check_nt (NSClient++) on RHEL 4 server running
> Nagios v3.0.1 with the latest plugins.
>
> I have tried different combinations of the description field:
> check_nt!COUNTER!-l "\\Memory\\Available MBytes","%%.f Physical Memory
> Available"
> check_nt!COUNTER!-l "\\Memory\\Available MBytes","%%.2f Physical Memory
> Available"
> check_nt!COUNTER!-l "\\Memory\\Available MBytes","%%.f %%%% Physical
> Memory Available"
>
> All of these return at least one percent sign, and no value, such as:
> %f Physical Memory Available
>
> If I leave out the description field (check_nt!COUNTER!-l
> "\\Memory\\Available MBytes") then I get a correct integer value.
>
> I would like the GUI to show (assuming a server / machine with 2gb memory
> and has available 1348MB:
> "1348 available out of 2048"
> or maybe even use a percentage of available as is in the built-in Memory
> Usage command, but
> this looks at the page file, not physical memory.
>
> On another note, since I am using a large amount of COUNTER defs to check
> Windows servers, can someone tell me how to set the warning and critical
> in the check_nt!COUNTER! command? Say the available memory in the above
> example reaches below 500, I want a warning, and below 250 a critical.
>
> Thanks in advance,
> Izz
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list