show the text file in Nagios GUI

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
bhaskarbabar
Posts: 19
Joined: Tue Jun 05, 2018 6:48 am

show the text file in Nagios GUI

Post by bhaskarbabar »

I have config backup of switch and want to show the same under nagios gui so that we can view while monitoring.

It should always pik up latest file available is it possible ?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: show the text file in Nagios GUI

Post by cdienger »

I'm not sure I fully understand the final goal, but if you're looking to host a config file that you download, you could save it to /usr/local/nagios/share/, and then view it by going to http://nagios_ip/nagios/<filename>. It should prompt you for nagios credentials. You can then make it easily accessible via the UI by editing /usr/local/nagios/share/side.php and inserting a link.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
bhaskarbabar
Posts: 19
Joined: Tue Jun 05, 2018 6:48 am

Re: show the text file in Nagios GUI

Post by bhaskarbabar »

I am doing backup of cisco devices to nagios servers on weekly basis with script.

i want to show those back up files on nagios gui while monitoring cisco device like uptime , interface status ?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: show the text file in Nagios GUI

Post by npolovenko »

@bhaskarbabar, One solution is to use a file count service check, that will check the number of files in the backup directory, or use a check that will alert you if the folder hasn't been modified in X amount of hours/days(we have these plugins on the nagios exchange). Otherwise, you could create your own custom script that would list all files in the backups directory:
#!/bin/bash

ls -l /path/to/backups/

exit 0
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked