Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
I have had huge issues getting this running. My end goal is to get emails and intergrate this with spiceworks. All I want is an email when one of these devices go down or is rebooted.
I have nagios installed with the plugins.
When I try and restart, I get this error " Could not register host (config file '/etc/nagios3/objects/switch.cfg'"
I think my main problem is I can't figure out on how to get any of these CFG files to work and how they are set up. Here is my switch.cfg
define host{
host_name AP89 ; The name we're giving to this switch
alias Cisco Access Point ; A longer name associated with the switch
address 192.168.1.89 ; IP address of the switch
hostgroups Switches ; Host groups this switch is associated with
}
define service{
; Inherit values from a template
host_name AP89 ; The name of the host the service is associated with
service_description PING ; The service description
check_command check_ping!200.0,20%!600.0,60% ; The command used to monitor the service
normal_check_interval 5 ; Check the service every 5 minutes under normal conditions
retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined
}
I am stuck at this point. Love to get this working.
Okay, I finally got it all working. My cfg files weren't setup properly. I see my hosts now, but I don't get emails when I reboot one of the hosts. I see it red and down but no email. Now what?