BENNING UPS ( monitor temp, output, load,voltage) with snmp

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mwaqas49
Posts: 23
Joined: Mon Sep 06, 2021 12:51 pm

Re: BENNING UPS ( monitor temp, output, load,voltage) with s

Post by mwaqas49 »

Hi greg,

Greg Smith
Thanks Muhammad!

Your appointment is booked for Wednesday, September 15, 2021 1:00 AM (Asia/Karachi).

PLACEHOLDER will send connection information shortly before the session is set to begin.

i have setup a video meeting on the shared link for tomorrow.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: BENNING UPS ( monitor temp, output, load,voltage) with s

Post by gsmith »

Hi Muhammad,

To recap our meeting there are three issues:

1. Can't apply configuration because a contact no longer with the company is being referenced by a Service definition.
2. SNMP monitoring of UPS - currently we can successfully perform snmpwalk from a Linux shell (CLI) on the Nagios XI server
but the gui fails to connect.
3. Backups are failing - the password for the nagios mysql database in the backup script isn't working.

Proposed actions:
1. Use Configure, Core Config Manager, Tools, Config File Management. Select "Delete Files" (red box), "Write Configs" (blue box).
And then under Quick Tools in the left-hand menu select "Apply Configuration" and then hit the "Apply Configuration" button.
This will require permission from the server administrator according to Muhammad. An alternative would be to re-add the contact,
Apply Configuration, and then remove the Contact again (provided he is not being referenced anywhere else).

2. I determined that the @ character is acceptable as part of the community_string both in the gui and from the command
line. However the \ character works from the command line but not the gui. I would like to see the UPS temporarily set up with a
community that uses snmp version 2c, is accessible from the localhost and the Nagios XI's IP only, and with a simple community_string
(such as: New123tesT) for testing. If the gui cannot connect the next step would be to look at how any firewalls are configured
on the network. We already know the snmpwalk from the command line works, so I am curious as to how any potential
firewalls are configured currently.

3. Either the backup script had the value for the mysql password changed or the database itself had the password changed.
By default the password is "nagiosxi". So to test, open a shell (CLI) on the Nagios XI server and enter the following:

Code: Select all

 mysql -u root -pnagiosxi
If you get logged in to the database then we know the password is still "nagiosxi" (Enter "quit" to exit mysql)
The backup script is: /usr/local/nagiosxi/scripts/restore_xi.sh and the password is set in the script by the
line themysqlpass="nagiosxi".
If the mysql password is unknow then:
a. have the Nagios XI server backed up at the OS level during a scheduled outage
b. follow https://docs.rackspace.com/support/how- ... -password/
to reset it.

Thanks
mwaqas49
Posts: 23
Joined: Mon Sep 06, 2021 12:51 pm

Re: BENNING UPS ( monitor temp, output, load,voltage) with s

Post by mwaqas49 »

Dear Greg,

Thanks for your time yesterday on online call.

I will do these steps and will let you know accordingly.
mwaqas49
Posts: 23
Joined: Mon Sep 06, 2021 12:51 pm

Re: BENNING UPS ( monitor temp, output, load,voltage) with s

Post by mwaqas49 »

1.Can't apply configuration because a contact no longer with the company is being referenced by a Service definition.

Is there any option that i can replace the problematic email id from the cfg file from the cli and what will be commands required for this?

check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts do********@w*****.com

So can i do this with root permission on CLI side or is there any other way and does the cli changes made on this problematic require any more commands for swift change so that i cant face issue on the GUI Side when applying configuration.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: BENNING UPS ( monitor temp, output, load,voltage) with s

Post by gsmith »

Hi,

You can try deleting the contact by editing the cfg file, but there is no guarantee
that doing so will solve your problem without selecting "Delete Files" (red box), "Write Configs" (blue box).
And then under Quick Tools in the left-hand menu select "Apply Configuration" and then hit the "Apply Configuration" button.

Thanks
mwaqas49
Posts: 23
Joined: Mon Sep 06, 2021 12:51 pm

Re: BENNING UPS ( monitor temp, output, load,voltage) with s

Post by mwaqas49 »

Hi gerg,

So if i click delete files can it delete all hosts and when i click the write files button after that so this will get all the hosts back and what sort of permission i needed to do this task?

Also one good news that the server guy have resolved the backup file issue problem .

So what is the best Backup the local achieves backup or the backup file from the scheduled backup for restoration ?

And i read that when restoring the backup on a testing Nagios XI you should match the same version of the server that the backup was taken from.
For example in our case we should use the same 5.6.5 version for restoring. So can you share me the process of how to install the 5.6.5 nagios xi on a testing environment because i have to delete the Nagios XI server which i upgraded wrongly with 5.8.5.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: BENNING UPS ( monitor temp, output, load,voltage) with s

Post by gsmith »

Hi Muhammad,

See my answers in BLUE below:

So if i click delete files can it delete all hosts and when i click the write files button after that so this will get all the hosts back and what sort of permission i needed to do this task?
The way Nagios used to work was to get it's configuration from the configuration files. Now, the Nagios configuration is persisted
in the mysql database. So when you make changes they are first written to the configuration files, and if everything passes a series
of internal checks the changes are written to the database.
When you click "Delete Files" you are deleting the configuration files, but the information in the mysql database is unchanged. So in
your case, if one of the config files has a service defined calling out the contact that no longer exists then we need to get rid of it. So
we have you "Delete Files", then "Write Configs" will re-create the config files using the information in the mysql database.
The default nagiosadmin account can perform this. Also a user account can perform this based on the permissions he has assigned
to him.


Also one good news that the server guy have resolved the backup file issue problem .

So what is the best Backup the local achieves backup or the backup file from the scheduled backup for restoration ?
You should use the Scheduled Backup as a default. Some people backup every night, some people backup weekly.
The more frequent the backups, the less potential loss of data, but the more disk space used.
In addition to that, if I spent the day making a lot of changes (say we acquired a new branch office) I would
run "Create Backup" under Local Backup Archives"


And i read that when restoring the backup on a testing Nagios XI you should match the same version of the server that the backup was taken from.
For example in our case we should use the same 5.6.5 version for restoring. So can you share me the process of how to install the 5.6.5 nagios xi on a testing environment because i have to delete the Nagios XI server which i upgraded wrongly with 5.8.5.
1. Go to https://www.nagios.com/downloads/nagios ... -releases/ this is where you can download previous versions of
Nagios XI.
2. Put the file in /tmp
3.

Code: Select all

cd /tmp
4.

Code: Select all

tar xzvf xi-5.6.5.tar.gz
5.

Code: Select all

cd /tmp/nagioxi
6

Code: Select all

./fullinstall
[/color]

mwaqas49
TRIAL

Posts: 16
Joined: Mon Sep 06, 2021 11:51 am

Good luck - let me know if you have any questions!

Thanks
mwaqas49
Posts: 23
Joined: Mon Sep 06, 2021 12:51 pm

Re: BENNING UPS ( monitor temp, output, load,voltage) with s

Post by mwaqas49 »

Dear Greg,
Happy weekend Holiday, i will configure the testing nagios again in this week with this 5.6.5 version and let you know.

One thing is weird happening to me when i configured the BENNING UPS SNMP OIDS as you suggested it did take a configure after the administrator made changes and from that day i got the alerts which prompted like this "PROBLEM Service Alert - BENNING-UP-TEMPERATURE-LOAD-OUTPUT/UPS Output Voltage" So how i can stop this alert as the email contact error is kept on denyiing me to apply configuration as i deleted this host BENNING UPS but that is not showing in the host section but this alert is kept on triggering.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: BENNING UPS ( monitor temp, output, load,voltage) with s

Post by ssax »

You can disable notifications globally in Admin > Monitoring Engine Status.

You can go to Home > Service Status, click on the Service, and click disable Notifications on it to disable notifications for the specific service.

Please PM me a copy of your profile, you can download it from Admin > System Profile by clicking the Download Profile button.
mwaqas49
Posts: 23
Joined: Mon Sep 06, 2021 12:51 pm

Re: BENNING UPS ( monitor temp, output, load,voltage) with s

Post by mwaqas49 »

Yes the Email issue got resolved after your suggestion in the blue line for the Point Number 1, thanks for your support greg on this.

While i want to have a one to one video meeting again with Greg as i changed the SNMP Community on Benning UPS which greg mentioned in the forum but i want to apply the OIDs via SNMP and then do plotting of the output on our Nagios Side.

Please send me an appointment link for video meeting so that i can book a time with Greg.
Locked