Archive for the ‘Nagios-PingTraceroute-Tool’ Category

Nagios Ping And Traceroute Tool Version 0.3

This has been on my to-do list for a long while….I have finally release a bundled package which includes bug fixes from users, a big thank you goes out to you all.

Here’s a copy of my changelog:

Version 0.3
Package bundle of 0.1 & 0.2 - Plus valid html code for exit errors.
http://www.linickx.com/blog/archives/92/nagios-ping-and-traceroute-tool-version-03/
Date: 16.12.2005

Version 0.2
Commented out hosts problem.
http://www.linickx.com/blog/archives/81/nagios-ping-tool-another-hack/
Date: 09.11.2005

Version 0.1
NagiosQL - Multiple hosts.cfg files support.
http://www.linickx.com/blog/archives/79/nagios-ping-tool-nagios-ql/
Date: 08.11.2005

Version 0
Initial Release.
Nagios Exchange Release Date: 28.09.2005

Nagios Ping Tool - Another Hack

I’ve received a patch from ed.davison, if you have commented out hosts in your config, you’ll get odd \”address - hostname\” results in the drop down list. Ed’s patch fixes that; thankx :-D

At the moment you’d have to apply the patch your self from the below; but I have a official revision in the pipeline.

Nagios Ping Tool & Nagios QL

Recently I had a request from rex to modify my nagios ping tool (Official Nagios Exchange page); he wanted to use the tool with his nagios configuration.

Rex appeared to be using Nagios QL (Which I believe to be a nagios management tool) , now QL handles nagios config slightly differently . The Ping Tool reads the nagios hosts.cfg file, and turns it into a couple of arrays to use for ping & display, with QL they generate multiple hosts.cfg files, one for each hosts.

Perhaps a short way of saying it, Rex needed to read in multiple hosts.cfg files from a directory, and below is the hack to do it :)

PHP - Nagios Ping & Traceroute Tool

Another day, another mini project.

My place of work pretty much demanded the need for our monitoring guys (i.e. people that stare at the nagios screen, waiting for red things) to have the ability to run traceroutes from nagios to the effected node - The twist in the story was that they wanted to do it from a browser !

So, I thought, that’d be an easy php script then :cool: , well to be honest it took a little longer than expected, mainly because I don’t really understand regular expressions (yet).

Nagios-ping-tool Is a package of small scripts :