Hi all,
Im' configuring for test purpose passive checks on my workstation and Nagios XI on Centos.
I succesfully configure passive checks for CPU, MEM and DISK usage. In Status Information I can see only OK status, but no more information about perfdata collected ( the actual value of CPU usage for example ).
In Service Status Detail > Advanced I can see that Performance Data is activated and is processed.
How to see the actual value in the status Information:
For example: OK: 25% CPU Usage
Thanks a lot.
Passive Checks no output data
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Passive Checks no output data
The performance data is used to create RRD files which in turn allow you to generate graphs. Anything after the pipe symbol "|" is cut off of the output and used as performance data and is not displayed as part of the status information.
Re: Passive Checks no output data
Hi slansing
Yes I know how perfdata works.
For example. In active checks I can see the status information of a Service:
Service: CPU Usage
Status: OK
Status Information : CPU Load 1% (5 min average)
And in passive checks:
Service: CPU Usage
Status: OK
Status Information: OK:
How to pass something to output the actual status?
Thanks.
Yes I know how perfdata works.
For example. In active checks I can see the status information of a Service:
Service: CPU Usage
Status: OK
Status Information : CPU Load 1% (5 min average)
And in passive checks:
Service: CPU Usage
Status: OK
Status Information: OK:
How to pass something to output the actual status?
Thanks.
Re: Passive Checks no output data
What method are you using to send the passive results back? It may just be a matter of editing the plugin to stick the perfdata in the output string.
Former Nagios employee
Re: Passive Checks no output data
Hi,
Im configuring in nsclient.ini:
; SCHEDULE - For more configuration options add a dedicated section
Drive C: Disk Usage=alias_disk_c
; ALIAS - For more configuration options add a dedicated section
alias_disk_c = check_drivesize "crit=used>90%" "warn=used>80%" drive=c
But only output data is returned when the check returns a warning or critical state. Where I have to place or modify the script? It's not my custom script.
Thanks.
Im configuring in nsclient.ini:
; SCHEDULE - For more configuration options add a dedicated section
Drive C: Disk Usage=alias_disk_c
; ALIAS - For more configuration options add a dedicated section
alias_disk_c = check_drivesize "crit=used>90%" "warn=used>80%" drive=c
But only output data is returned when the check returns a warning or critical state. Where I have to place or modify the script? It's not my custom script.
Thanks.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Passive Checks no output data
You will either need to write a wrapper script that calls check_nt for you and modifies the output as you like, or use check_nrpe and another check on the windows host to get the desired output. Unfortunately, nsclient doesn't allow for the output to be modified as you wish, without either of the above options.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.