Tag Archives: nrpe

Parse list_disk.pl to configure disk checks for nagios.

I wrote a post earlier regarding listing the available disks on a remote server using list_disks.pl and NRPE. This time, I’m going to provide a code snippet that you can use to parse that output. The code isn’t very complicated, so I’ll just provide it for your uses. my $list_disks = ‘list_disks’; my $libexec = [...]

Posted in Nagios | Also tagged , | Leave a comment

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 [...]

Posted in Nagios | Also tagged , , | Leave a comment

Configuring nagios to run privileged or root commands with NRPE.

Theres several things you’ll need to adjust in the default Nagios installation to get NRPE to run privileged commands. Before we start, I’m assuming that you’re using a similar /etc/xinetd.d/nrpe file: 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 [...]

Posted in Nagios, Webhosting | Also tagged | Leave a comment