Quantcast
Channel: NSClient++ » All Posts
Viewing all 189 articles
Browse latest View live

CheckCounter – Thresholds not working

$
0
0

I’m running NSClient++ 0.4.3.88

I’m attempting to setup a NagiosXI service to check Windows performance counters using NSClient++ NRPE (check_nrpe). Even though I set the threshold values (MaxWarn & MaxCrit), the return is always zero (0;0). I used the Processor Time counter as an example and put a 100% load on the cpu. Am I missing something?

./check_nrpe -H x.x.x.x -p 5666 -c CheckCounter -a “Counter=\\Processor Information(_Total)\\% Processor Time” ShowAll MaxWarn=80 MaxCrit=90
OK: |’\Processor Information(_Total)\% Processor Time’=100;0;0


Reply To: NSCP 0.43 – howto change warn and crit times in check uptime

$
0
0

Settings that worked for me with NRPE are:

-c check_uptime -a “critical=uptime<0″ “warning=uptime<0″

Problems with check_service

$
0
0

I’m trying to get check_service in 0.4.3 to display the same behavior I was getting in 0.4.1 from checkServiceState. So you are aware, I’m running these using legacy NRPE.

First off, I can’t check services based on their display name any longer. For example, if I run -c check_service -a "service=Adobe Acrobat Update Service" I get Failed to open service: Adobe Acrobat Update Service. If I check using the service name (in this case AbodeARMservice) then it works. It used to also check via the display name.

Second, it doesn’t display any detail/performance data. When I use checkServiceState, it provides data showing the exact status of each service that I’m checking. When I use check_service, it only tells me that all X number of services are OK, or if one or more has failed which service that is. Ideally, I’d like to see that all X of my services are working, but also see all the services that are being checked.

real time event log fitler syntax for NSClient++ – 0.4.3.131

$
0
0

Hi all,

Anyone have any information for how to write real time event log filter syntax or example for NSClient++ – 0.4.3.131?

The following example are confirmed not work in Nsclient 0.4.3.131
filter= level = (warning) AND ID NOT IN (1,2,3,100)
filter= level = (warning,error) AND ID NOT IN (1,3,30,1000)
filter= level = (warning)
filter= level = (error)
fitler= level = “warning”
fitler= level = “error”
fitler= level = ‘warning’
fitler= level = ‘error’

Reply To: check_drivesize

$
0
0

Should I post this issue elsewhere?

Reply To: check_drivesize

$
0
0

Double check that both systems have the same version of NSClient++ installed, and that they have the exact same config file.

Reply To: Unicode in 0.4.3

$
0
0

Hi Joffrey,
tre teh Numeric Values form the Registry
you can find the Values
in the Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib
009> Counter contains the English Values
for example
“\\physikalischer Datenträger(0 D:)\\Mittlere Sek./Lesevorgänge”!ShowAll!MaxWarn=0.0020 don’t work because german “umlaute”
So try the num. Value all works fine

Numerische Werte wegen Umlauten verwenden
234 > Physikalischer Datenträger
214 > Lesevorgänge/s

\234(_total)\214

hope it help

greetinsg
stefan

Reply To: Unicode in 0.4.3

$
0
0

Yes, it’s work ! :)
Big thanks !

check_pdh “counter=\234(_Total)\1400″ ->
OK: \234(_Total)\1400 = 0

I found translation in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\CurrentLanguage

But I test this since 1 hour, and the counter is always at “0” …
Even when I “stress” the server’s disks with massiv data copy, and when the perfmon show that the counter is different from “0”…

One problem solved, but it’s not the end :)

Still investigating


Reply To: Unicode in 0.4.3

$
0
0

Hi Joffrey
i get the same Problem with the Performance data Value
as Interim Solution i use the “flags=1000″ Argument
this will multiplicity the value * 1000
greetings

Stefan

Reply To: Unicode in 0.4.3

$
0
0

It’s work ! Thanks again Stefan ! U make my day :)

I just have to replace $alias by the common name to have an explicit tag and the job is done

So, we have a nice workarround, but it would be cool that NSClient support Unicode in counters for the futures release !

Joffrey

NSClient version 0.4.3.136-x63 always returns zero

$
0
0

I am using the following command

./check_nrpe -H IP_HOST -c CheckCounter -a “Counter=\LogicalDisk(C:)\Disk Transfers/sec”

always returns
OK: \LogicalDisk(C:)\Disk Transfers/sec = 0|’\LogicalDisk(C:)\Disk Transfers/secnone’=0;0;0

And using the zabbix agent, I know that these values are fractionated example 1.15 sec

Zabbix Agent

Reply To: NSClient version 0.4.3.136-x63 always returns zero

$
0
0

Hi
I have the same error
try to use the “flags=1000″ Argument

i get the same Problem with the Performance data Value
as Interim Solution i use the “flags=1000″ Argument
this will multiplicity the value * 1000
greetings

Stefan

check_multi escape whitespace

$
0
0

How do I escape whitespace in check_multi?

check_pdh counter=\\Terminaldienste\\Aktive\ Sitzungen warn=value>5

L        cli OK: OK: \Terminaldienste\Aktive Sitzungen = 1
L        cli  Performance data: '\Terminaldienste\Aktive Sitzungen_value'=1;5;0

check_multi command=check_pdh counter=\\Terminaldienste\\Aktive\ Sitzungen warn=value>5

L        cli Long message                                                                     
UNKNOWN: Invalid command line: unrecognised option 'counter=\Terminaldienste\Aktive Sitzungen'
help            Show help screen (this screen)                                                
help-pb Show help screen as a protocol buffer payload                                         
show-default    Show default values for a given command                                       
help-short      Show help screen (short format).                                              
command=        Commands to run (can be used multiple times)                                  
arguments=      Deprecated alias for command                                                  
separator=,     Separator between messages                                                    
prefix= Message prefix                                                                        
suffix= Message suffix

check_multi command="check_pdh counter=\\Terminaldienste\\Aktive\ Sitzungen warn=value>5"

L        cli UNKNOWN: Invalid option: Sitzungen
 

Reply To: NSClient version 0.4.3.136-x63 always returns zero

Reply To: CheckCounter – Thresholds not working

$
0
0

Hi Don…
as far as I understood the attributes:
attrributes has to be applied after -a Switch
attributes has to be seperated by space chars
every attribute must be surrounded by ” chars

so for your example try:

./check_nrpe -H x.x.x.x -p 5666 -c CheckCounter -a “Counter=\\Processor Information(_Total)\\% Processor Time” "ShowAll" "MaxWarn=80" "MaxCrit=90"


Reply To: WebUI

$
0
0

Hi, I cannot get this working either.
The above command nscp web –install –password foobar does not work.
Would you please give us a little more information on what the exact steps would be to get this to work?
Thanks!

Reply To: WebUI

$
0
0

In test mode:
load webserver to load and test the web page

In nsclient.ini (not test mode):

In the modules section:

/modules
WEBServer=enabled

[/settings/default]
; PASSWORD – Password used to authenticate against server
password = foobar

Help needed with check_service (4.3.131)

$
0
0

Hi all,

I need some assistance with check_service syntax – I am trying to setup a single check to monitor multiple services with similar name (all services are set to manual start and alert should be sent whenever they are not running). I have updated nsclient as I have found out that it can do filtering based on name of service but I have not figure it how to do it properly.

At the moment all I have is:
check_service -a "filter=name like 'MY_SERVICE'"
which returns:
OK: All 35 service(s) are ok.
but that’s not ok as some of them are stopped.

Can someone advice what I am missing here, please.

Thank you in advance,
Tomasz

Can't pass arguments

$
0
0

Hello,
I have the following issue, I just cant pass arguments from my nagios server to nsclient. I tried every post that I found about this but does not work for me. I’m using nsclient 0.4.2.93 usin the on nsc.ini file. In nsclient log it said 2015-03-27 07:23:19: error:D:\source\nscp\modules\CheckExternalScripts\CheckExternalScripts.cpp:440: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true

[/settings/NRPE/server]
verify mode=none
insecure=true
[modules]
CheckExternalScripts.dll=1
CheckHelpers.dll=1
CheckEventLog.dll=1
CheckNSCP.dll=1
CheckDisk.dll=1
CheckSystem.dll=1
NRPEListener.dll=1
allow arguments = true
[Settings]
;# ALLOWED HOST ADDRESSES
;  This is a comma-delimited list of IP address of hosts that are allowed to talk to the all daemons.
;  If leave this blank anyone can access the deamon remotly (NSClient still requires a valid password).
allowed_hosts=***************
;
;# USE THIS FILE
;  Use the INI file as opposed to the registry if this is 0 and the use_reg in the registry is set to 1
;  the registry will be used instead.
use_file=1
use_ssl=1
allow arguments = true
allow_arguments=1
allow_nasty_meta_chars=1
[NRPE]
;# NRPE PORT NUMBER
;  This is the port the NRPEListener.dll will listen to.
port=15696

allow_arguments=1
allow_nasty_meta_chars=1
[External Scripts]
;check_updates=cscript.exe //NoLogo //T:40 scripts\check_windows_updates.wsf
check_carbonite=cscript.exe //NoLogo scripts\check_carbonite.vbs
;check_mdaemon_connections=scripts\check_mdaemon_connections.exe -w 10 -c 20
;check_mdaemon_queues=cscript.exe //NoLogo scripts\check_mdaemon_queues.vbs 10 20
check_backupexec_run=scripts/check_be.exe "C:\Program Files\Symantec\Backup Exec\Data\" "JOBNAME" -w1 -c3
check_ntbackup_active=cscript.exe //NoLogo scripts\check_ntbackup_active.vbs
check_updates=cscript.exe //T:30 //NoLogo scripts\nm-check-available-updates.vbs
<strong>runcmd=scripts\cmd.bat "$ARG1$"</strong>

allow_arguments=1
allow_nasty_meta_chars=1
[External Alias]

check_main_disks=checkDriveSize MinWarnFree=10% MinCritFree=5% Drive=C Drive=E
check_backup_disks=checkDriveSize MinWarnFree=10% MinCritFree=5% Drive=F Drive=G
check_services=checkServiceState LogMeIn=started DNS=started Spooler=started
check_cpu=checkCPU warn=80 crit=90 time=5m time=1m time=30s
check_mem=checkMem MaxWarn=80% MaxCrit=90% ShowAll type=physical
check_alive=checkOk

I’ve tried with allow arguments = true as well.

Reply To: Help needed with check_service (4.3.131)

$
0
0

This seems to did the trick:

check_service -a "filter=name like 'MY_SERVICE'"  "critical=state = 'stopped'"
Viewing all 189 articles
Browse latest View live