Tag Archives: nrpe
List disks on linux server for nagios.
I wrote this simple script that I named list_disks.pl to help me configure my hosts. I use it as a NRPE check to query a server for all of its available disks, and parse the output to write configuration files. It is useful for automating host configuration files when the hosts don’t have consistent naming [...]
Configuring nagios to run privileged or root commands with NRPE.
Theres several things we need to adjust to get this working properly. Before we start, the following /etc/xinetd.d/nrpe file is assumed. service nrpe { flags=REUSE socket_type=stream port= 5666 wait=no user=nagios group=nagios server=/usr/local/nagios/bin/nrpe server_args=-n -c /usr/local/nagios/etc/nrpe.cfg -i log_on_failure+=USERID disable=no only_from=111.111.111.111 } The things to watch out for here are the username and group. If you’re not [...]
Parse list_disk.pl to configure disk checks for nagios.