Passive Checks no output data

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
proquibas
Posts: 18
Joined: Mon Jul 22, 2013 7:52 am

Passive Checks no output data

Post by proquibas »

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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Passive Checks no output data

Post by slansing »

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.
proquibas
Posts: 18
Joined: Mon Jul 22, 2013 7:52 am

Re: Passive Checks no output data

Post by proquibas »

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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Passive Checks no output data

Post by tmcdonald »

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
proquibas
Posts: 18
Joined: Mon Jul 22, 2013 7:52 am

Re: Passive Checks no output data

Post by proquibas »

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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Passive Checks no output data

Post by sreinhardt »

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.
Locked