Custom Website Monitor error when applying configuration
Posted: Tue Mar 26, 2024 1:08 pm
Hey gents!
So in my Nagios Core implementation, I have a server and under that I am monitoring a website using a custom check_http command that looks like this and it works great:
Now on my NagiosXI server, I have tested the command (via terminal) and it also works great! So, I go to the CCM and add the custom command. Then I go to Monitoring > Services and select my server I want it to add that command to. I add it, and do the Run check command and everything comes back green finish all the required setup for the command and save. When I hit apply configuration, I get an error on screen:
When I check the config file, there are no errors and the obviously the command never added to the config file and that particular line is actually a blank line. So why is it throwing that error? I have checked all the log files I can think of and cant find anything to tell me what the error is so I can fix it.
So in my Nagios Core implementation, I have a server and under that I am monitoring a website using a custom check_http command that looks like this and it works great:
Code: Select all
/usr/local/nagios/libexec/check_http --ssl --sni -H $ARG1$ -s $ARG2$
Code: Select all
<div>Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/<my_servername>.cfg', starting on line 193)</div>