NRPE problem
Hi all
I've followed this tutorial for installing and configuring NRPE Daemon link and everything works (when i follow the tutorial) now i've added a plugin of mine (so i did the changes from page 13 to 14) and i restarted everything, but how can i execute a check from the monitor host? For example, i have a check called check_file_age which checks the age of a file (ofcourse) on the remote host. When i execute this on the remote host itself everything is fine Code:
./check_file_age -w 100 -c 200 -f filename Can someone please help me with this? It's probably something easy, but i can't figure out what to do :( Thanks in advance Kind regards Brownie |
check page 10 in the link you provided.
|
yeah, i've found it too :p
this is what i do now Code:
./check_nrpe -H host -c check_file_age But now i want to go a little further, in the file nrpe.cfg (located at /usr/local/nagios/etc/ (in my case)) you can add commands (see page 13) so i've added: Code:
command[check_file_age]=/usr/local/nagios/libexec/check_file_age -w 100 -c 1000 -f filename Quote:
Ok, with everything set up (and xinetd restarted) i go to my monitoring host and type something like: Code:
./check_nrpe -H 193.191.168.59 -c check_file_age -w 100 -c 1000 -f /cronjob.txt Code:
./check_nrpe: invalid option -- w Code:
#./check_nrpe -H 193.191.168.59 -c check_file_age -a 100 -a 1000 -a /cronjob.txt I know it's a lot of information and maybe hard to understand, but if you know it, feel free to help me :p in the meantime i'll try to find the solution and if i do, i'll post it here ;) Kind regards Brownie |
oke guys
i already found the solution :p when you do Code:
./configure Code:
./configure --enable-command-args maybe nice to know, if you did that special configure and want to use a check from the monitor host, use Code:
./check_nrpe -H remote_host -c check_file_age -a 100 1000 /filename.txt Kind regards P.S.: link |
All times are GMT -5. The time now is 10:53 PM. |