NSClient++ Help (#1) - More Features to NSClient++ (#321) - Message List
I have installed NSClient++ on windows XP system and its working fine. But i need many other services than which are available currently. I need to get the updates from some personal applications and notify to the nagios server. How could i possibly do it. Is there a special API to connect with NSClient++?
simplest is to write an external script (batch file for instance or your favorite language) and call that (via NRPE) using the CheckExternalScripts module...
There is also built-in Lua support as well as possible to write "plugins" in C++ (and many other language but no documentation), it is possible to do it in .net (plugins) but a bit "hard" at the moment as .net cant build propper DLLs
(but I am guessing you want the external scripts support)
MickeMmickem01/13/09 20:52:39 (4 years ago)
In NSCClient the NSC.INI file does not includes a CheckExternalScripts.dll.
Upto now what i have done was un-comment the line check_es_ok=scripts\ok.bat and created a foler called scripts and created a very simple ok.bat file inside that.
But how to call this command now??
(im very new to nagios and if my questions can be very simple once)
Thank you for helpingdinesh70701/14/09 14:28:34 (4 years ago)
I found the CheckExternalScripts.dll file inside the NSC.INI file. Now when i inject the command check_es_ok the out put appears.
Thank you for the help at the beginning.dinesh70701/14/09 14:34:19 (4 years ago)
NOw when i goto Run Command and inject the command check_es_ok it gives the corrcet output as i wated.
But now the problem is how to call that from the nagios server. And i have found many other commands also which are avilable in the NSClient++ cannot be found inside the nagios (check_nt) commands.dinesh70701/14/09 14:45:42 (4 years ago)
Good stuff... you need to use NRPE (check_nrpe) to use those commands...
MickeMmickem01/14/09 18:00:42 (4 years ago)
Now i installed NRPE plugin into nagios.
And when i check it with "check_nrpe -H 127.0.0.1" it shows up the version. but when i try it with inserting the ip address of the computer which runs NSClient++ it makes a time out. I have disabled all firewalls in both client and the sever. Do i have to do modifications on the NSClinet++ files. I set the allowed_hosts to the nagios server address as well?. what else am i have to do ??
Thank youdinesh70701/15/09 14:42:23 (4 years ago)
you need to load NRPEListsner plugin (and a few other if you plan on running external scripts) readup on the comments in the ini file and I think you should be safe, there is also IIRC a quite quite to setting it up in the wiki...
MickeMmickem01/15/09 15:10:41 (4 years ago)
Hay, i have done everithing on NRPE (check_nrpe) configurations of NSClient++, but still i get the timeout at the server end. There couldent be any problem in the server end becouse when i try the cehck_nrpe with local host it works. But when i give the client address it isnt.dinesh70701/16/09 12:54:51 (4 years ago)