Page 1 of 1

Solaris NRPE Monitoring

Posted: Wed May 21, 2014 10:54 am
by Merick1983
Hello,

Apologies if these questions have already been asked, I did a search and didn't find the same issues anywhere else.

We have just configured monitoring on one of our Solaris boxes and we have noticed two things that are unusual and wondered whether or not we were doing something wrong.

1 - The user count includes all open windows / terminals. We had 1 user logged in with 12 terminals open and Nagios showed it as having "12 users currently logged in". Closing the terminal windows resulted in the this number dropping. Is there an option that can be changed to show true users?

2 - The disk usage monitor works fine, however, if we un-mount the volume the NRPE agent then sees the folder rather than the mount and reports disk usage of the folder, not the now un-mounted volume. Is there anything that can be done to detect the loss of a mount rather than NRPE showing the disk usage of the where the volume exists? (I'm afraid I'm a windows user so a lot of this means nothing to me, I had someone else doing the tests for me :) )

Thanks in advance,
Mark.

Re: Solaris NRPE Monitoring

Posted: Wed May 21, 2014 12:55 pm
by abrist
Merick1983 wrote:1 - The user count includes all open windows / terminals. We had 1 user logged in with 12 terminals open and Nagios showed it as having "12 users currently logged in". Closing the terminal windows resulted in the this number dropping. Is there an option that can be changed to show true users?
This is a true user count as each login opens a terminal session.
Merick1983 wrote:2 - The disk usage monitor works fine, however, if we un-mount the volume the NRPE agent then sees the folder rather than the mount and reports disk usage of the folder, not the now un-mounted volume. Is there anything that can be done to detect the loss of a mount rather than NRPE showing the disk usage of the where the volume exists? (I'm afraid I'm a windows user so a lot of this means nothing to me, I had someone else doing the tests for me :) )
How is the volume mounted? NFS, Samba, local mount, etc?

Re: Solaris NRPE Monitoring

Posted: Fri May 23, 2014 7:47 am
by Merick1983
Hi abrist,

Thanks for the response.

The user count isn't too much of an issue, we were hoping we could use it as a count of how many people were using the server but any servers we use it on, the users would only have one session open.

The mount is an NFS mount.

Regards,
Mark.

Re: Solaris NRPE Monitoring

Posted: Fri May 23, 2014 11:33 am
by abrist
Merick1983 wrote:The mount is an NFS mount.
You may want to create a script to check the output of df for your mount. . .