Page 1 of 1
HPUX disk check question
Posted: Thu May 11, 2017 11:29 am
by benhank
We have NRPE disk checks running on our hpux servers:
Capture1.PNG
However when there is an issue with a mount point, Nagios doesn't tell me which mount point is running low:
Capture.PNG
Is there a way to have XI show me which mount point is running low, or just display the mount points that have issues?
Re: HPUX disk check question
Posted: Thu May 11, 2017 1:06 pm
by dwhitfield
The default way to do this (aka, the way the Wizard does it) is to set up separate services for each mount point. You could use the copy function in the CCM to get most of the settings in there for the mount points and then go back and edit them appropriately.
You could also do this with a wrapper script.
I'd be happy to put in a feature request about check_disk at
https://github.com/nagios-plugins/nagios-plugins/issues, but feel free to do that yourself if you like.
Re: HPUX disk check question
Posted: Thu May 11, 2017 1:51 pm
by benhank
is there any documentation on writing the wrapper script?
\
feature request added:
Re: HPUX disk check question
Posted: Thu May 11, 2017 1:59 pm
by dwhitfield
No, not really. People write scripts in basically every language imaginable, so we can't really maintain documentation for that. It's basic, but I did find
http://www.yourownlinux.com/2014/06/how ... cript.html if you want to use bash.
We also have
https://nagios-plugins.org/doc/guidelines.html but it's probably overkill for what you'd need to do.
Once the script itself is written, we do have documentation for setting the script up in XI:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
If you don't like the copy method in the CCM, you could also use the API to set up the different services quickly:
http://YOURSERVER/nagiosxi/help/api.php