Re: New to Nagios. Installing Custom Plugin Problem
Posted: Tue Jan 28, 2014 2:51 pm
@millisa.
Thank you for the vast amount of information you supplied. I feel a little stupid thinking that the min and max values of the WeatherGoose were thresholds that gave warnings of the Weathergoose. When I previously asked this to my supervisor, about why previous logs showed the alarm tripping when the values where within the min and max threshold, he was puzzled as well. While yes, I am a student, this project was not assigned to me by an instructor of one of my classes. Instead I work for the University's Enterprise Infrastructure department, similar to work study.
Per your information provided, I did change the define host, services, and command to the following
define host and service are located in /usr/local/nagios/etc/objects/WeathGooseII.cfg
and defince command is located in /usr/local/nagios/etc/objects/command.cfg
I still cannot get Nagios to produce any info on the webinterface. I tried running:
nagios -v /usr/local/nagios/etc/nagios.cfg
but get a bash:nagios:command not found error. So I ran:
/etc/init.d/nagios configtest
and got message that "Things look OK"
I'll be reading the articles in the links that you provided, to work on my perlscript. But once again, thanks for the info. I know that once I figure this one little step out, that I'll definitely be more knowledgable to be able to handle configuring Nagios to monitor the WeatherGoose remotely.
Thank you for the vast amount of information you supplied. I feel a little stupid thinking that the min and max values of the WeatherGoose were thresholds that gave warnings of the Weathergoose. When I previously asked this to my supervisor, about why previous logs showed the alarm tripping when the values where within the min and max threshold, he was puzzled as well. While yes, I am a student, this project was not assigned to me by an instructor of one of my classes. Instead I work for the University's Enterprise Infrastructure department, similar to work study.
Per your information provided, I did change the define host, services, and command to the following
Code: Select all
define host{
use linux-server
host_name localhost
alias localhost
address 127.0.0.1
}
define service{
use generic-service
host_name localhost
description Check Calculus Temperature
check_command WeatherGooseII.pl
}
define command{
command_name WeatherGooseII.pl
command_line WeatherGooseII.pl –H $HOSTADDRESS$ -p #or /usr/local/nagios/libexec/WeatherGooseII.pl –H 127.0.0.1 -p
}
and defince command is located in /usr/local/nagios/etc/objects/command.cfg
I still cannot get Nagios to produce any info on the webinterface. I tried running:
nagios -v /usr/local/nagios/etc/nagios.cfg
but get a bash:nagios:command not found error. So I ran:
/etc/init.d/nagios configtest
and got message that "Things look OK"
I'll be reading the articles in the links that you provided, to work on my perlscript. But once again, thanks for the info. I know that once I figure this one little step out, that I'll definitely be more knowledgable to be able to handle configuring Nagios to monitor the WeatherGoose remotely.