monitor and alert using NRP agent on a RedHat client
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: monitor and alert using NRP agent on a RedHat client
I am going to have our AIX guy take a look at this, with the holiday it may be a bit before I have a solid response.
-
spcmidrange
- Posts: 47
- Joined: Fri Jun 15, 2012 12:54 pm
Re: monitor and alert using NRP agent on a RedHat client
Scott
Thanks, but you misunderstood me. I only mentioned AIX as an example of servers i have monitored in the past. My specific problem/screenshot is with RHEL/Linux servers. From the screenshot in my first post (2 posts previous), an inetd server being monitored says its down, but Nagios says that its "OK"
Just to repeat, this has nothing to do with AIX, only Linux/RHEL
Apologizes for the confusion.
Cheers!
Ryan
Thanks, but you misunderstood me. I only mentioned AIX as an example of servers i have monitored in the past. My specific problem/screenshot is with RHEL/Linux servers. From the screenshot in my first post (2 posts previous), an inetd server being monitored says its down, but Nagios says that its "OK"
Just to repeat, this has nothing to do with AIX, only Linux/RHEL
Apologizes for the confusion.
Cheers!
Ryan
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: monitor and alert using NRP agent on a RedHat client
Can you tell me what nrpe command these are using and if possible send me the corresponding plugin from the remote machine so I can verify that we don't have a newer version of the plugin available.
I have tried to test this but seem to get the expected results on my machine...
I have tried to test this but seem to get the expected results on my machine...
-
spcmidrange
- Posts: 47
- Joined: Fri Jun 15, 2012 12:54 pm
Re: monitor and alert using NRP agent on a RedHat client
Scott.
All i did was run the linux-nrpe-agent.tar.gz to install the agent and ran the Linux/RHEL add new host wizard. Bare with me as im used to using flat files than this whole new interface.

Everything is brand new. NagiosXI, the client install, hell the server. Running the commands on the server in question gives same result
[root@ami-reg-ftws-02 ~]# /etc/init.d/flexnet-epm status
flexnet-epm is stopped.
[root@ami-reg-ftws-02 ~]# /usr/local/nagios/libexec/check_init_service flexnet-epm
flexnet-epm is stopped.
But why is NagiosXI reporting that its "OK" It clearly says its stopped and i know the service is stopped
All i did was run the linux-nrpe-agent.tar.gz to install the agent and ran the Linux/RHEL add new host wizard. Bare with me as im used to using flat files than this whole new interface.

Everything is brand new. NagiosXI, the client install, hell the server. Running the commands on the server in question gives same result
[root@ami-reg-ftws-02 ~]# /etc/init.d/flexnet-epm status
flexnet-epm is stopped.
[root@ami-reg-ftws-02 ~]# /usr/local/nagios/libexec/check_init_service flexnet-epm
flexnet-epm is stopped.
But why is NagiosXI reporting that its "OK" It clearly says its stopped and i know the service is stopped
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: monitor and alert using NRP agent on a RedHat client
On that machine can you run the following commands and report the output
Thanks
Code: Select all
/sbin/service flexnet-epm status
echo $?-
spcmidrange
- Posts: 47
- Joined: Fri Jun 15, 2012 12:54 pm
Re: monitor and alert using NRP agent on a RedHat client
[root@ami-reg-ftws-02 ~]# /sbin/service flexnet-epm status
flexnet-epm is stopped.
[root@ami-reg-ftws-02 ~]# echo $?
0
Cheers!
flexnet-epm is stopped.
[root@ami-reg-ftws-02 ~]# echo $?
0
Cheers!
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: monitor and alert using NRP agent on a RedHat client
Well we found the problem, but now we need to see if we can find a work-around for you.
The plugin uses the return code of that command as the status. For whatever reason yours is returning 0 even if the service is stopped.
Does this service have a propper status setup in it's init.d file?
The plugin uses the return code of that command as the status. For whatever reason yours is returning 0 even if the service is stopped.
Does this service have a propper status setup in it's init.d file?
-
spcmidrange
- Posts: 47
- Joined: Fri Jun 15, 2012 12:54 pm
Re: monitor and alert using NRP agent on a RedHat client
Looks like your right. After googling what you were askin, and looking at other init.d scripts, this doesnt update anything related to status, nor $?
Question solved! I will ask the app guys to fix their scripts to be proper compliance
Thanks Scott!
Cheers!
Question solved! I will ask the app guys to fix their scripts to be proper compliance
Thanks Scott!
Cheers!
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact: