Nsclient++ Check_Mem
Re: Nsclient++ Check_Mem
yes, is the only configuration file . I have one more
- Attachments
-
nsclient.ini- (859 Bytes) Downloaded 313 times
Re: Nsclient++ Check_Mem
help me create script for edit ok in status information.
The plugin is likely check_nt. This is a compiled c program, so you will need to find the source code from our nagios-plugins github account or write a wrapper script to call instead and alter it.
The plugin is likely check_nt. This is a compiled c program, so you will need to find the source code from our nagios-plugins github account or write a wrapper script to call instead and alter it.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nsclient++ Check_Mem
You should be able to find a windows memory check plugin our our exchange that will work with NRPE, and alter that. You will need to make the changes, we can help give guidance:
http://exchange.nagios.org/index.php?op ... s%20memory
http://exchange.nagios.org/index.php?op ... s%20memory
Re: Nsclient++ Check_Mem
Any of them - depends on your requirements, etc.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Nsclient++ Check_Mem
how to tell nagios to run the script memory.sh check process, to collect information in windows server
http://exchange.nagios.org/directory/Pl ... ng/details
http://exchange.nagios.org/directory/Pl ... ng/details
Re: Nsclient++ Check_Mem
I make:
commands.cfg
but not work
the Nagios plugins do not include check_mem:
Command not found
I used:
commands.cfg
windows.cfg
but result wrong result:
Computer have 3G RAM
To expand:
where defined page
Merged your five posts, do not post multiple times in a row as that will bump you lower on our "to be replied to" list. Simply edit your previous post to add new info, also, use code-wraps as has been shown before so it is easier to read your text... - Slansing
commands.cfg
Code: Select all
define command{
command_name check_mem.sh
command_line $USER1$/home/check_mem.sh -H $HOSTADDRESS$
}
windows.cfg
define service{
use generic-service
host_name winserver
service_description memory
check_command check_mem.sh
}the Nagios plugins do not include check_mem:
Code: Select all
define command {
command_name check_mem
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -n -c CheckMem -a type=physical MaxWarn=$ARG1$ MaxCrit=$ARG2$ ShowAll=long
}Code: Select all
define service{
use generic-service
host_name teste
service_description Memori
check_command check_nrpe!check_mem
}I used:
commands.cfg
Code: Select all
define command {
command_name check_mem
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -n -c CheckMem type=physical MaxWarn=$ARG1$ MaxCrit=$ARG2$ ShowAll=long
}Code: Select all
define service{
use generic-service
host_name teste
service_description Memory
check_command check_mem
}
Code: Select all
Result= OK:
'committed'=1GB;3;4;0;4 'committed %'=29%;79;89;0;100 'physical'=1GB;2;2;0;2 'physical %'=47%;79;89;0;100
To expand:
Code: Select all
check_nt!MEMUSE MaxWarn=80% MaxCrit=90% ShowAll type=page
check_nt $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$
-> $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v MEMUSE MaxWarn=80% MaxCrit=90% ShowAll type=page (undefined)
Merged your five posts, do not post multiple times in a row as that will bump you lower on our "to be replied to" list. Simply edit your previous post to add new info, also, use code-wraps as has been shown before so it is easier to read your text... - Slansing
Last edited by slansing on Thu Mar 13, 2014 9:56 am, edited 2 times in total.
Reason: Merged your five posts, do not post multiple times in a row as that will bump you lower on our "to be replied to" list. Simply edit your previous post to add new info, also, use code-wraps as has been shown before so it is easier to read your te
Reason: Merged your five posts, do not post multiple times in a row as that will bump you lower on our "to be replied to" list. Simply edit your previous post to add new info, also, use code-wraps as has been shown before so it is easier to read your te
Re: Nsclient++ Check_Mem
Your nsclient.ini file is not complete... Take a look at the top portion of the file. You will need to run the following command in CMD on the Windwos box to load all of the defaults:
Then you will have to set up a command under external scripts, something like this one:
Restart the NSClient++ service, so that changes can take effect.
Test it from the nagios server:
Code: Select all
nscp settings --generate --add-defaults --load-allCode: Select all
check_physical_memory=checkMem MaxWarn=80% MaxCrit=90% ShowAll=long type=physicalTest it from the nagios server:
Code: Select all
./check_nrpe -H <client IP> -c check_physical_memoryBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nsclient++ Check_Mem
I believe you need to go to the nsclient dir. Usually it's in:
Code: Select all
cd "c:\Program Files\NSClient++"Be sure to check out our Knowledgebase for helpful articles and solutions!