I have a custom script to generate monthly reports about Hosts and Services.
The syntax is pretty simple:

* /usr/local/nagios/libexec/report.pl –email=fel.h2o@gmail.com –type=monthlyservice –debug=0

/usr/local/nagios/libexec/report.pl –email=emailme@gmail.com –type=monthlyservice –debug=1
I usually add it to run once a month one for service and the other for hosts.
To get it working you will need to edit the script.
Download the Code here

Tags: , , , , ,

3 thoughts on “nagios report

    1. Sorry Ivo,
      I just fixed the broken link.
      Any modification or improvements in the script is welcome.
      Its not the most clean code but I does the job for me.
      cheers,
      Felipe

  1. Hi,
    while trying this script, i am getting these errors;
    Wed Sep 7 03:12:24 2011: Retreived URL successfully
    Wed Sep 7 03:12:24 2011: Retreived URL successfully
    can’t open file : No such file or directory
    can’t open file : No such file or directory
    /bin/mv: missing file operand
    Try `/bin/mv –help’ for more information.
    The command i am running; ./report.pl -type=daily (email hard coded)
    Can you please help out?
    thanks
    regards

Leave a Reply

Your email address will not be published. Required fields are marked *