Mini PHP based web interface for Nagios NDOUtils add-on
This is VERY basic. It will return nagios host and service data based on your post. For example:
wget -qO- --no-check-certificate --user nagios_web_user --password nagios_web_user_pass --post-data="host=randomhost&format=json" https://localhost/nagios/host_status.php
This will connect to the nagios site (assumes you have a cert, assumes you have basic HTTP auth), and posts a randomehost, requesting json format. Various bits of data will be returned in json format. Other supported formats are xml, plaintext. For plaintext, just use "format=" with no entry.
I've added injection protection using OWASP based recommendations.
Do something simlar for services:
wget -qO- --no-check-certificate --user nagios_web_user --password nagios_web_user_pass --post-data="host=randomhost&service=httpd&format=json" https://localhost/nagios/service_status.php
Remember, these are examples. Again, this is basic, it could be easily changed to support other people's needs. My only intention was for an easy dashboard plugin that didn't constantly read status.dat.
More later, when I have the free time.
-
Notifications
You must be signed in to change notification settings - Fork 0
Mini PHP based web interface for Nagios NDOUtils add-on
License
bsdtrhodes/ndoutils-web
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Mini PHP based web interface for Nagios NDOUtils add-on
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published