Categories
Welcome Center
Education & Development
Discussions
Certification Preparation
Recent Posts
Groups
Free Resources
Ebooks
Free Workshops
Trending Certifications Infographic
Infosec Training
IT & Security Training
Live Boot Camps
Security Awareness Training
About Infosec Institute
Home
Discussions
Off Topic
Finally! Fixed a Nagios Issue
the_Grinch
This has been burning me for literally months and today I finally "fixed" it! The issue I ran into was when testing to see if an external server was up. Obviously, a simple ping would do it, but a number of the servers block ping. Nagios has a command (check_tcp) which allows you to designate a port to check to see if it is open. Since these are web servers I figured that is the best course of action. I set this command in the hosts.cfg and figured I'd be good to go. Every time I would check the config, it would fail saying it couldn't find the command. But if I went into the web interface I could set it as a passive check and it would work without issue. At the time that was good enough so I left it (big mistake). About a month ago we had a major issue with the Nagios server and when we finally got it back up suddenly none of the servers were being checked. Of course I for got I had to passively set the command.
Last week we decided that since Nagios isn't very resource intensive (we're using it to monitor 17 servers and 17 websites) we'd migrate it to a virtual server. I setup the server and began the install that's when I figured it was time that I fix this issue. Come to find out in the commands.cfg you are suppose to designate the port to scan and location of the file. The whole time I had the port in the hosts.cfg. Remove the port and bam working without an issue!
Find more posts tagged with
Save $250 on 2025 certification boot camps from Infosec!
Book now with code EOY2025
Button
Comments
ccnxjr
So....
Would you say the problem was in the documentation or in the execution....
:P
*ducks*
the_Grinch
Haha most definitely my fault I can admit that
ccnxjr
Happens to all of us sooner or later
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Best Of
INFOSEC Boot Camps
$250
OFF
Use code
EOY2025
to receive $250 off your 2025 certification boot camp!
BROWSE BOOT CAMPS