Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
ok you're explanation is awsome,
so now i need to make the script file check_ping.bat , but i don't know what to write in that script
( sorry because i still newbie )
ziedmahjoub wrote:ok you're explanation is awsome,
so now i need to make the script file check_ping.bat , but i don't know what to write in that script
nsclient++ includes that script, no need to create it, although you will have to add a definition to your nsclient.ini
Error: Host check command 'check_nrpe -c indirect_check_ping' specified for host 'KTD_Server' is not defined anywhere!
Looks to me like you added all that rubbish to your check_command in your host definition (no doubt because I told you to, I will go back and revise what I jotted down). Your check_command references the "command_name" in the command definition, so it will just be indirect_check_ping based upon the fact that you created a new command definition.
jdalrymple i didn't add that rubbish , i just created a command based on what you told me , but i think i forgot something , anyway i will try to see your edited post .
ziedmahjoub - I'm sorry, I didn't mean to imply you did anything wrong. I should have been more clear with my earlier definitions, I got sloppy and I apologize for confusing you. I have updated them though and it should definitely be more clear now.
The important thing is to understand that you're defining a new host, but your new host is going to have the address of the host that is running the NRPE service and you'll be changing the command that you use to verify that it's alive. The default ping check would indicate the state of the NRPE host and that's why we're changing it to the NRPE check so you get a realistic view of whether the host is up or down.
Of course if the NRPE host goes down you could potentially get false positives, so you may want to make your inderect machine's parent the NRPE host so that the state goes to "unreachable" if the NRPE host goes down.
I apologize again for the earlier confusion. Hopefully though - the goal is not necessarily just to show you how to set it up but rather so that you understand exactly how it works so that you can set it up again in the future if you need to for more hosts
Can you double check your version of nsclient++? The syntax of the file changes a lot from version to version so before I give you exact syntax I'd like to verify that I know what version you're using.
jdalrymple wrote:Can you double check your version of nsclient++? The syntax of the file changes a lot from version to version so before I give you exact syntax I'd like to verify that I know what version you're using.