Nagios configuration tool and RRD

Nathan Oyler noyler at khimetrics.com
Thu May 19 20:53:39 CEST 2005


I wrote perl scripts to add hosts, remove hosts, and schedule downtime.

These are my first perl scripts, I used a schedule downtime shell script
on the nagios exchange as a basis to work off of for that.

I've been trying to remove the site specific stuff I wrote in to them,
but I really should have avoided that from the beginning. 

Add host takes in a domain name, and a flag for the type of machine it
is, verifies that it exists within dns and adds the host, host to the
correct hostgroups, verifies nagios runs without errors, backs up the
current config files, replaces them, then restarts the service.

I made a scheme in contacts so that each location has its own group.
Simply, HQ_LinuxAdmins. The prefix of the subnets are different at each
location, so I use the subnet of the hostname's ip address to determine
the contact group.

Things like that just make it impossible for me to submit, but as I get
better at perl I would hope to submit something unless someone else
beats me to it. :)

Schedule downtime is okay, but it takes way too many arguments, I need
to shave it down to default to the current time plus 2 hours like the
web interface does.

I'm very green though, I am still working out logic errors if they come
up. And I'd really like someone with more perl knowledge to critique it.
I would hate to give someone a script that has huge errors, or
something. 

> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Paul Orrock
> Sent: Thursday, May 19, 2005 9:29 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Nagios configuration tool and RRD
> 
> Hi,
> 
> I'm just getting to grips with nagios 1.3 and I've now got my head
around
> how the different config files relate to each other thanks to the
great
> config diagram by Joe Walker [0].
> 
> However I've been doing some research into configuration interfaces
and
> RRD reporting and would like to know what others use ?
> On the RRD side, I only really need the conversion to rrd so I was
> thinking about using the insert.pl part of nagiograph but I wondered
> whether anyone has a specific tool to turn the service statuses into
rrd
> files ?
> 
> On the config side nagmin seems to do way more than I need, and I
wanted
> something a bit slicker and less buggy than nagat.
> So I though I would ask those in know what they use,
> 
> TIA,
> 
> Paul
> 
> [0]
>
http://nagios.sourceforge.net/download/contrib/documentation/misc/config
_d
> iagrams/nagios-config.sxd
> for those who haven't found it yet :-)
> 
> --
> Paul Orrock, Lead Developer
> Digital Craftsmen Ltd.
> Coppergate House, 16 Brune Street, London. E1 7NJ
> T: 020 7953 7768  F: 020 7953 7709 E: paulo at digitalcraftsmen.net
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by Oracle Space Sweepstakes
> Want to be the first software developer in space?
> Enter now for the Oracle Space Sweepstakes!
> http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_idt12&alloc_id344&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list