NRPE Solaris SPARC
Steps To install NRPE on Solaris SPARC ( Airtel , OKHLA )[edit]
Note : Prior knowledge of NRPE / Nagios Concept and Implementation .
1. Upload the SYMCnrpe-sparc-1.4.15b.pkg file to the server in the /tmp directory. get it from http://www.4shared.com/file/tB_oTh5W/SYMCnrpe-sparc-1415bpkg.html
2. Install the Pkg file on the server.
3. On successfull installation of the pkg file we will get the folder /usr/local/nagios
4. Inside the /usr/local/nagios there will be three folders bin , etc , libexec.
5. Check the service of the nrpe if it is online or not, if the nrpe is online that means nrpe service is working on the server.
6. Go to folder /usr/local/nagios/libexec and run the file ./check_nrpe –H localhost it will show you the version of the nrpe it should be “NRPE v2.12”.
7. Inside libexec folder ther will be generic plugins for the nagios that we can use while configuring the different services
8. Now go to nagios server 172.30.1.24 and go inside the folder /usr/local/nagios/libexec and run the command ./check_nrpe –H <client ip> this will show the nrpe version like NRPE v2.12 so it means we are able to communicate through nrpe from nagios server to the client.
9. If we are not able to communicate through nagios server to the client then there is some issue. Check port 5666 should be open and it should not be blocked by the firewalls
10. Telnet on port 5666 through nagios server for the confirmation if port is opened or not.
11. Go back to the client on the location /usr/local/nagios/etc/, inside etc there will be a file nrpe.cfg. In this file we configure all the service that we have to monitor from nagios for this particular client.
12. Open the file nrpe.cfg and go to the bottom of the file there you will find some examples how we can configure the service for a client.
13. For example command[check_users]=/usr/local/nagios/libexec/check_disk -w 50% -c 70% this is a command to check the current users logged on the server.
14. Here “check_users” is a unique identifier for the command that we are using to identify the command from the nagios server.
15. /usr/local/nagios/libexec/check_disk is specifing the path of the plugin.
16. -w 50% –c 70% specify the warning and the critical limit for the check_disk command.
17. Similarly we can configure all the service we have to monitor from the nagios server to the client.
18. After configuring the services save the file.
19. Now we can check through the nagios server by the command prompt if we are getting the output of the configured services on the nagios server.
20. Go to the location /usr/local/nagios/libexec on nagios server run the command ./check_nrpe –H <client ip> -c <check command> (check_disk).
21. –c option defines the command check or the unique identifier that we have defined in the nrpe.cfg file at the client.
22. After running the command on the nagios server in step 23 if we get output as Service OK or Warning or Critical then we are getting the output from nrpe to nagios.
23. Configure the client on the nagios server.